/* ===== Gallery & Fullscreen ===== */

.gallery-section .panel {
  padding: 32px;
  position: relative;
}

.gallery-container {
  display: grid;
  justify-items: center;
  grid-template-columns: 48px 1fr 48px;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.gallery-image-wrapper {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-image-wrapper img {
  display: block;
  width: 100%;
  opacity: 0;
  animation: fadeImage 0.3s forwards ease;
}

@keyframes fadeImage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-nav {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gallery-info {
  text-align: center;
  margin-bottom: 18px;
}

.gallery-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.gallery-info p {
  font-size: 14px;
  color: var(--muted);
}

/* Thumbnails */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumbnail {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  height: 60px;
  transition: border-color 0.2s ease;
  opacity: 0.6;
  cursor: pointer;
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--accent);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-fullscreen-btn {
  margin: 16px auto 0;
  display: inline-flex !important;
}

/* Fullscreen overlay */
.fs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fs-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0f16;
}

.fs-close,
.fs-prev,
.fs-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fs-close {
  top: 20px;
  right: 20px;
}

.fs-prev {
  left: 20px;
}

.fs-next {
  right: 20px;
}

.fs-prev:hover,
.fs-next:hover,
.fs-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
