/* ======= GALLERY PAGE STYLES ======= */

/* Page header with parallax effect */
.page-header {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.1);
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%);
  z-index: -1;
}

.page-header-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  margin-top: 70px;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.gallery-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Gallery Categories */
.gallery-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 8px 16px;
  background: rgba(200,169,104,.1);
  border: 1px solid rgba(200,169,104,.3);
  color: var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.category-btn:hover {
  background: rgba(200,169,104,.2);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(to right, var(--gold), var(--gold-2));
  color: #0F0F0F;
  font-weight: 500;
}

/* Main Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 4rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .caption {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.gallery-item .location {
  color: var(--gold);
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
}

.gallery-item:hover .caption,
.gallery-item:hover .location {
  transform: translateY(0);
  opacity: 1;
}

/* Featured Collections */
.featured-collections {
  margin-top: 5rem;
}

.collection-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: center;
}

.collection-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.collection-item:nth-child(even) .collection-content {
  direction: ltr;
}

.collection-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-item:hover .collection-image img {
  transform: scale(1.03);
}

.collection-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.collection-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.view-collection-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(to right, var(--gold), var(--gold-2));
  color: #0F0F0F;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.view-collection-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: white;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev::before,
.lightbox-next::before {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-top: 2px solid white;
  border-left: 2px solid white;
}

.lightbox-prev::before {
  transform: rotate(-45deg);
}

.lightbox-next::before {
  transform: rotate(135deg);
}

/* Download / Share */
.image-actions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1001;
}

.image-action-btn {
  width: 40px;
  height: 40px;
  background: rgba(200,169,104,.2);
  border: 1px solid rgba(200,169,104,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  transition: all 0.3s ease;
}

.image-action-btn:hover {
  background: rgba(200,169,104,.3);
  transform: translateY(-2px);
}

/* Instagram Feed Section */
.instagram-feed {
  margin-top: 5rem;
  text-align: center;
}

.instagram-feed h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.instagram-feed p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.instagram-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-icon {
  color: white;
  font-size: 1.5rem;
}

.instagram-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-radius: 50px;
  margin-top: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.instagram-follow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .collection-item,
  .collection-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}