/* =============================================================
   MEDIA PAGES — PHOTOS + VIDEOS + ARTICLES
============================================================== */
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.media-card { overflow: hidden; }
.media-card__image { min-height: 240px; background: var(--bg-soft); position: relative; display: grid; place-items: center; }
.media-card__body { padding: 18px; }
.media-card__body h3 { margin: 0 0 8px; }
.media-card__body p { color: var(--muted); margin: 0 0 12px; }
.video-play { width: 70px; height: 70px; border-radius: 50%; background: #ff1738; color: #fff; display: grid; place-items: center; font-size: 26px; }
@media (max-width: 800px) { .media-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }










/* ==========================================
   ARAFA CNC — PHOTO GALLERY
========================================== */

.ar-gallery {
  padding: 55px 0 75px;
  background: #fff;
}

.ar-gallery__container {
  max-width: 1450px;
  margin-inline: auto;
}

.ar-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* PHOTO CARD */

.ar-photo-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f2f5f8;
  cursor: zoom-in;
}

.ar-photo-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.ar-photo-card:hover > img {
  transform: scale(1.055);
}

.ar-photo-card__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 30, 55, .28);
  opacity: 0;
  transition: opacity .3s ease;
}

.ar-photo-card__zoom i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #ff5a00;
  color: #fff;
  font-size: 19px;
  transform: scale(.8);
  transition: transform .3s ease;
}

.ar-photo-card:hover .ar-photo-card__zoom,
.ar-photo-card:focus-visible .ar-photo-card__zoom {
  opacity: 1;
}

.ar-photo-card:hover .ar-photo-card__zoom i {
  transform: scale(1);
}

.ar-photo-card:focus-visible {
  outline: 3px solid #ff5a00;
  outline-offset: 3px;
}

/* ==========================================
   LIGHTBOX
========================================== */

.ar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, .91);
  color: #fff;
  direction: ltr;
}

.ar-lightbox[hidden] {
  display: none !important;
}

/* TOOLBAR */

.ar-lightbox__toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 6px 18px;
  background: rgba(0, 0, 0, .55);
}

.ar-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ar-lightbox__tool {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.ar-lightbox__tool:hover {
  background: rgba(255, 255, 255, .16);
  color: #ff7a28;
}

.ar-lightbox__counter {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

/* IMAGE STAGE */

.ar-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 150px);
  height: calc(100% - 105px);
  margin-top: 35px;
  overflow: auto;
  text-align: center;
}

.ar-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  box-shadow: 0 10px 45px rgba(0,0,0,.3);
  transition: transform .25s ease;
}

.ar-lightbox__stage.is-zoomed img {
  transform: scale(1.6);
  cursor: zoom-out;
}

/* NAVIGATION ARROWS */

.ar-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  transform: translateY(-50%);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, .45);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: background .2s ease;
}

.ar-lightbox__arrow:hover {
  background: #ff5a00;
}

.ar-lightbox__prev {
  left: 24px;
}

.ar-lightbox__next {
  right: 24px;
}

/* BODY LOCK */

body.ar-lightbox-open {
  overflow: hidden;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {
  .ar-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ar-gallery {
    padding: 35px 0 45px;
  }

  .ar-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ar-photo-card {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
  }

  .ar-lightbox__stage {
    width: calc(100% - 78px);
    height: calc(100% - 95px);
  }

  .ar-lightbox__arrow {
    width: 32px;
    height: 38px;
    font-size: 15px;
  }

  .ar-lightbox__prev {
    left: 3px;
  }

  .ar-lightbox__next {
    right: 3px;
  }

  .ar-lightbox__toolbar {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-photo-card img,
  .ar-photo-card__zoom,
  .ar-lightbox__stage img {
    transition: none;
  }
}

