/* Enhanced Gallery Lightbox - Zoom Style */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-lightbox__image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.gallery-lightbox__image-wrapper {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-lightbox__info-panel {
  width: 400px;
  background: var(--color-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-lightbox__close:hover {
  background: var(--color-white);
  transform: scale(1.1);
}

.gallery-lightbox__close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  stroke-width: 2;
}

.gallery-lightbox__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.gallery-lightbox__description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.gallery-lightbox__details {
  margin-bottom: var(--space-2xl);
}

.gallery-lightbox__detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid #f0f0f0;
}

.gallery-lightbox__detail-item:last-child {
  border-bottom: none;
}

.gallery-lightbox__detail-label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.gallery-lightbox__detail-value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-sm) var(--space-md);
  border-radius: 20px;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.gallery-lightbox__navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-lightbox__navigation:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox__navigation--prev {
  left: 20px;
}

.gallery-lightbox__navigation--next {
  right: 20px;
}

.gallery-lightbox__navigation svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
  stroke-width: 2;
}

.gallery-lightbox__cta {
  margin-top: auto;
  padding-top: var(--space-xl);
}

.gallery-lightbox__button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4af37 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
}

.gallery-lightbox__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #d4af37 0%, var(--color-accent) 100%);
}

.gallery-lightbox__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.gallery-lightbox__button:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

.gallery-lightbox__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.gallery-lightbox__button:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-lightbox__container {
    flex-direction: column;
  }
  
  .gallery-lightbox__info-panel {
    width: 100%;
    max-height: 40%;
    overflow-y: auto;
    padding: var(--space-xl);
  }
  
  .gallery-lightbox__image-section {
    padding: var(--space-lg);
  }
  
  .gallery-lightbox__title {
    font-size: var(--text-2xl);
  }
  
  .gallery-lightbox__description {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .gallery-lightbox__info-panel {
    padding: var(--space-lg);
  }
  
  .gallery-lightbox__image-section {
    padding: var(--space-md);
  }
  
  .gallery-lightbox__close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
  
  .gallery-lightbox__navigation {
    width: 40px;
    height: 40px;
  }
  
  .gallery-lightbox__navigation--prev {
    left: 15px;
  }
  
  .gallery-lightbox__navigation--next {
    right: 15px;
  }
  
  .gallery-lightbox__counter {
    bottom: 20px;
    left: 20px;
    font-size: var(--text-xs);
  }
}

/* Animation enhancements */
.gallery-lightbox__image-wrapper {
  animation: lightboxImageIn 0.4s ease-out;
}

.gallery-lightbox__info-panel {
  animation: lightboxPanelIn 0.4s ease-out 0.1s both;
}

@keyframes lightboxImageIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lightboxPanelIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Zoom functionality */
.gallery-lightbox__image-wrapper {
  overflow: hidden;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.gallery-lightbox__image-wrapper.zoomed {
  cursor: grab;
  overflow: auto;
}

.gallery-lightbox__image-wrapper.zoomed:active {
  cursor: grabbing;
}

.gallery-lightbox__image-wrapper.zoomed .gallery-lightbox__image {
  cursor: zoom-out;
  transform: scale(2);
  transition: transform 0.3s ease;
}

.gallery-lightbox__image-wrapper:not(.zoomed) .gallery-lightbox__image {
  cursor: zoom-in;
  transform: scale(1);
  transition: transform 0.3s ease;
}

/* Zoom controls */
.gallery-lightbox__zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 15;
}

.gallery-lightbox__image-section:hover .gallery-lightbox__zoom-controls {
  opacity: 1;
}

.gallery-lightbox__zoom-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.gallery-lightbox__zoom-btn:hover {
  background: var(--color-white);
  transform: scale(1.1);
}

.gallery-lightbox__zoom-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  stroke-width: 2;
}

/* Loading state */
.gallery-lightbox__image-wrapper.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-highlight);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}