/* 
  gallery-details.css 
  Premium Apple-style Bento Gallery Redesign
*/

:root {
  --gd-primary: #0b1836;
  --gd-accent: #d4af37;
  --gd-bg: #ffffff;
  --gd-text: #111827;
  --gd-text-light: #6b7280;
  --gd-radius: 28px;
  --gd-easing: cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   HERO SECTION
   ========================================= */
.gd-hero {
  padding: 170px 0 60px;
  background: linear-gradient(135deg, #0b1836 0%, #15295c 100%);
  text-align: center;
}

.gd-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gd-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.gd-hero-desc {
  font-size: 1.25rem;
  color: var(--gd-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* =========================================
   INFO BAR (Small Elegant Header Version)
   ========================================= */
.gd-info-bar-small {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 15px;
}

.gd-info-item-small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 10px;
}

.gd-info-label-small {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.gd-info-val-small {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.gd-info-divider-small {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 10px;
}

.gd-info-actions-small {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.gd-btn-icon-small {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gd-btn-icon-small:hover {
  background-color: #ffffff;
  color: var(--gd-primary);
  transform: translateY(-2px);
}

.gd-hero-desc-small {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 15px auto 5px;
  max-width: 600px;
}

/* =========================================
   BENTO GRID
   ========================================= */
.gd-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.gd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 250px;
  gap: 24px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
  .gd-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gd-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gd-hero-title { font-size: 2.5rem; }
  .gd-info-bar { flex-wrap: wrap; border-radius: 20px; justify-content: center; }
}

/* Span Classes for Bento Asymmetry */
.span-col-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }
.span-col-2-row-2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 600px) {
  .span-col-2, .span-row-2, .span-col-2-row-2 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* =========================================
   IMAGE CARDS
   ========================================= */
.gd-card {
  position: relative;
  border-radius: var(--gd-radius);
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transform: translateZ(0);
  transition: box-shadow 0.5s var(--gd-easing), transform 0.5s var(--gd-easing);
  
  /* Scroll Animation Defaults */
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  filter: blur(8px);
}

.gd-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.8s ease, transform 0.8s var(--gd-easing), filter 0.8s ease, box-shadow 0.5s var(--gd-easing);
}

.gd-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  z-index: 2;
}

.gd-card-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gd-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--gd-easing);
  will-change: transform;
}

.gd-card:hover img {
  transform: scale(1.08);
}

/* Featured Image Special Styling */
.gd-featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 1200px) { .gd-featured { grid-column: span 2; } }
@media (max-width: 900px) { .gd-featured { grid-column: span 2; } }
@media (max-width: 600px) { .gd-featured { grid-column: span 1; grid-row: span 1; } }

/* =========================================
   HOVER OVERLAY
   ========================================= */
.gd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 24, 54, 0.8) 0%, rgba(11, 24, 54, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s var(--gd-easing);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  pointer-events: none;
}

.gd-card:hover .gd-overlay {
  opacity: 1;
}

.gd-overlay-content {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--gd-easing);
  transition-delay: 0.1s;
  color: #fff;
}

.gd-card:hover .gd-overlay-content {
  transform: translateY(0);
  opacity: 1;
}

.gd-overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.gd-overlay-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.gd-overlay-meta i {
  color: var(--gd-accent);
}

.gd-expand-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
  transition: all 0.4s var(--gd-easing);
}

.gd-card:hover .gd-expand-icon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* =========================================
   CUSTOM LIGHTBOX
   ========================================= */
.gd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 54, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gd-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gd-lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10000;
}

.gd-lightbox-close:hover {
  transform: rotate(90deg);
}

.gd-lightbox-counter {
  position: absolute;
  top: 35px;
  left: 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.gd-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gd-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.4s var(--gd-easing);
}

.gd-lightbox.active .gd-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.gd-lightbox-caption {
  margin-top: 20px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
}

.gd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.gd-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gd-lightbox-prev { left: 30px; }
.gd-lightbox-next { right: 30px; }

/* Disable Select / Drag on Lightbox */
.gd-lightbox img {
  user-select: none;
  -webkit-user-drag: none;
}

/* =========================================
   LOAD MORE
   ========================================= */
.gd-load-more-wrap {
  text-align: center;
  margin-top: 40px;
  display: none;
}

.gd-btn-load {
  background: var(--gd-primary);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--gd-easing);
  box-shadow: 0 10px 20px rgba(11, 24, 54, 0.2);
}

.gd-btn-load:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(11, 24, 54, 0.3);
  background: #15295c;
}
