/* ARMA Gallery: /events/ is visually used as a photo gallery. */

.arma-events-menu-hidden {
  display: none !important;
}

/* Gallery page */
.arma-gallery-content {
  padding-top: 42px;
  padding-bottom: 42px;
}

.arma-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.arma-gallery-card {
  display: block;
  width: 25%;
  padding: 10px;
  box-sizing: border-box;
  text-decoration: none;
}

.arma-gallery-card-picture {
  display: block;
  position: relative;
  height: 0;
  padding-top: 70%;
  overflow: hidden;
  background: #b7b7b7;
}

.arma-gallery-card-picture img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.arma-gallery-card:hover img {
  transform: scale(1.025);
  opacity: .92;
}

.arma-gallery-empty {
  min-height: 120px;
  padding: 35px 0;
  color: #555;
  font-size: 18px;
  text-align: center;
}

/* Gallery strip on the site home page */
.arma-home-gallery {
  position: relative;
  overflow: hidden;
  background: #d9d9d9;
  padding: 40px 0;
  margin-bottom: 55px;
}

.arma-home-gallery .inner-wrap {
  position: relative;
}

.arma-home-gallery-slider {
  position: relative;
  margin: 0 -10px;
}

.arma-home-gallery-slider:not(.owl-loaded) {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.arma-home-gallery-slider:not(.owl-loaded) .arma-home-gallery-item {
  width: 25%;
  flex: 0 0 25%;
}

.arma-home-gallery-item {
  padding: 0 10px;
  box-sizing: border-box;
}

.arma-home-gallery-link,
.arma-home-gallery-picture {
  display: block;
}

.arma-home-gallery-picture {
  position: relative;
  height: 0;
  padding-top: 70%;
  overflow: hidden;
  background: #aaa;
}

.arma-home-gallery-picture img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

.arma-home-gallery-link:hover img {
  opacity: .9;
}

.arma-home-gallery .owl-nav {
  height: 0;
}

.arma-home-gallery .owl-prev,
.arma-home-gallery .owl-next {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #971b1e;
  font-size: 36px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  z-index: 10;
}

.arma-home-gallery .owl-prev {
  left: -22px;
}

.arma-home-gallery .owl-next {
  right: -22px;
}

.arma-home-gallery .owl-prev.disabled,
.arma-home-gallery .owl-next.disabled {
  display: none;
}

@media (max-width: 979px) {
  .arma-gallery-card {
    width: 50%;
  }

  .arma-home-gallery-slider:not(.owl-loaded) .arma-home-gallery-item {
    width: 33.3333%;
    flex-basis: 33.3333%;
  }
}

@media (max-width: 659px) {
  .arma-gallery-content {
    padding-top: 25px;
    padding-bottom: 30px;
  }

  .arma-gallery-grid {
    margin: -6px;
  }

  .arma-gallery-card {
    width: 50%;
    padding: 6px;
  }

  .arma-home-gallery {
    padding: 24px 0;
    margin-bottom: 35px;
  }

  .arma-home-gallery-slider {
    margin: 0 -5px;
  }

  .arma-home-gallery-item {
    padding: 0 5px;
  }

  .arma-home-gallery-slider:not(.owl-loaded) .arma-home-gallery-item {
    width: 50%;
    flex-basis: 50%;
  }

  .arma-home-gallery .owl-prev {
    left: -10px;
  }

  .arma-home-gallery .owl-next {
    right: -10px;
  }
}

/* v2: slider directly on the Gallery page */
.arma-gallery-slider {
  position: relative;
  margin: 0 -10px;
}

.arma-gallery-slider:not(.owl-loaded) {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.arma-gallery-slider:not(.owl-loaded) .arma-gallery-item {
  width: 25%;
  flex: 0 0 25%;
}

.arma-gallery-item {
  padding: 0 10px;
  box-sizing: border-box;
}

.arma-gallery-slider .arma-gallery-card {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  cursor: zoom-in;
}

.arma-gallery-slider .owl-stage-outer {
  overflow: hidden;
}

.arma-gallery-slider .owl-nav {
  height: 0;
  margin: 0;
}

.arma-gallery-slider .owl-prev,
.arma-gallery-slider .owl-next {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #a51e22 !important;
  font-family: Arial, sans-serif !important;
  font-size: 42px !important;
  font-weight: 300 !important;
  line-height: 43px !important;
  text-align: center !important;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.28);
  z-index: 20;
}

.arma-gallery-slider .owl-prev {
  left: 10px;
}

.arma-gallery-slider .owl-next {
  right: 10px;
}

.arma-gallery-slider .owl-prev:hover,
.arma-gallery-slider .owl-next:hover {
  background: #a51e22 !important;
  color: #fff !important;
}

.arma-gallery-slider .owl-prev.disabled,
.arma-gallery-slider .owl-next.disabled {
  display: none !important;
}

.arma-gallery-slider .arma-gallery-nav-char {
  position: relative;
  top: -2px;
  display: inline-block;
}

@media (max-width: 979px) {
  .arma-gallery-slider:not(.owl-loaded) .arma-gallery-item {
    width: 33.3333%;
    flex-basis: 33.3333%;
  }
}

@media (max-width: 659px) {
  .arma-gallery-slider {
    margin: 0 -6px;
  }

  .arma-gallery-item {
    padding: 0 6px;
  }

  .arma-gallery-slider:not(.owl-loaded) .arma-gallery-item {
    width: 50%;
    flex-basis: 50%;
  }

  .arma-gallery-slider .owl-prev,
  .arma-gallery-slider .owl-next {
    width: 40px;
    height: 40px;
    margin-top: -20px !important;
    font-size: 34px !important;
    line-height: 36px !important;
  }

  .arma-gallery-slider .owl-prev {
    left: 6px;
  }

  .arma-gallery-slider .owl-next {
    right: 6px;
  }
}

@media (max-width: 419px) {
  .arma-gallery-slider:not(.owl-loaded) .arma-gallery-item {
    width: 100%;
    flex-basis: 100%;
  }
}


/* v3: pagination dots for gallery sliders */
.arma-gallery-slider .owl-dots,
.arma-home-gallery-slider .owl-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 12px;
  margin-top: 18px;
  text-align: center;
}

.arma-gallery-slider .owl-dot,
.arma-home-gallery-slider .owl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #d0d0d0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: width .18s ease, height .18s ease, background .18s ease, opacity .18s ease;
}

.arma-gallery-slider .owl-dot span,
.arma-home-gallery-slider .owl-dot span {
  display: none !important;
}

.arma-gallery-slider .owl-dot.active,
.arma-home-gallery-slider .owl-dot.active {
  width: 11px;
  height: 11px;
  background: #a51e22 !important;
}

.arma-gallery-slider .owl-dot:hover,
.arma-home-gallery-slider .owl-dot:hover {
  background: #a51e22 !important;
  opacity: .8;
}

@media (max-width: 659px) {
  .arma-gallery-slider .owl-dots,
  .arma-home-gallery-slider .owl-dots {
    gap: 7px;
    margin-top: 14px;
  }
}


/* v4: mobile gallery layout — one large photo per slide.
   The legacy site uses a fixed 440px viewport on phones, so the mobile
   carousel must switch to one item before 660px rather than at 419px. */
@media (max-width: 659px) {
  .arma-gallery-content {
    padding-top: 18px;
    padding-bottom: 26px;
  }

  .arma-gallery-slider,
  .arma-home-gallery-slider {
    margin-left: 0;
    margin-right: 0;
  }

  .arma-gallery-item,
  .arma-home-gallery-item {
    padding-left: 0;
    padding-right: 0;
  }

  .arma-gallery-slider:not(.owl-loaded) .arma-gallery-item,
  .arma-home-gallery-slider:not(.owl-loaded) .arma-home-gallery-item {
    width: 100%;
    flex: 0 0 100%;
  }

  .arma-gallery-slider .arma-gallery-card-picture,
  .arma-home-gallery-slider .arma-home-gallery-picture {
    padding-top: 66%;
  }

  .arma-gallery-slider .owl-prev,
  .arma-gallery-slider .owl-next,
  .arma-home-gallery .owl-prev,
  .arma-home-gallery .owl-next {
    width: 42px;
    height: 42px;
    margin-top: -21px !important;
    font-size: 36px !important;
    line-height: 38px !important;
  }

  .arma-gallery-slider .owl-prev,
  .arma-home-gallery .owl-prev {
    left: 10px;
  }

  .arma-gallery-slider .owl-next,
  .arma-home-gallery .owl-next {
    right: 10px;
  }

  .arma-gallery-slider .owl-dots,
  .arma-home-gallery-slider .owl-dots {
    margin-top: 12px;
  }
}
