/**
 * Gallery Album View Styles
 * Featured view with navigation and thumbnails
 *
 * @package LoboGallery
 */

/* ============================================
   GALLERY ALBUM WRAPPER
   ============================================ */

.gallery-album-wrapper {
  width: 100%;
  max-width: 100%;
  background: white;
  padding-top: 30px;
  padding-bottom: 40px;
}

/* ============================================
   ALBUM HEADER
   ============================================ */

.gallery-album-header {
  text-align: center;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  position: relative;
}

.gallery-album-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 20px;
}

.gallery-album-nav-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-album-nav-top:hover {
  border-color: #000;
  color: #000;
  background: #f9f9f9;
}

.gallery-album-nav-top.gallery-album-nav-next {
  flex-direction: row-reverse;
}

.gallery-album-nav-top svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.gallery-album-nav-top.disabled {
  visibility: hidden;
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.gallery-back-btn:hover {
  color: #000;
  border-color: #000;
  transform: translateX(-4px);
}

.gallery-back-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gallery-album-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin: 0 0 15px 0;
  letter-spacing: 0.02em;
}

.gallery-album-description {
  font-size: 16px;
  color: #666;
  margin: 0 0 15px 0;
  font-weight: 300;
  line-height: 1.6;
}

.gallery-album-count {
  display: inline-block;
  font-size: 14px;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   MAIN GALLERY VIEW
   ============================================ */

.gallery-album-main {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px;
  box-sizing: border-box;
  align-items: start;
}

/* ============================================
   FEATURED IMAGE
   ============================================ */

.gallery-featured {
  position: relative;
  overflow: hidden;
}

.gallery-featured-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-featured-image:hover .gallery-featured-img,
.gallery-featured-image:hover .gallery-featured-img-link img {
  transform: scale(1.03);
}

.gallery-featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.gallery-featured-placeholder svg {
  width: 80px;
  height: 80px;
  fill: #ddd;
}

.gallery-featured-expand {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  border: none;
  padding: 0;
  z-index: 10;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gallery-featured-expand:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-featured-expand svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.gallery-featured-img-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-featured-img-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.gallery-featured-nav {
  position: absolute;
  top: 50%;
  left: -60px;
  right: -60px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.gallery-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  pointer-events: auto;
  text-decoration: none;
  border: none;
  padding: 0;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* ============================================
   FEATURED INFO
   ============================================ */

.gallery-featured-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gallery-item-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px 0;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.gallery-item-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
}

.gallery-item-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-meta-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-meta-value {
  font-size: 16px;
  color: #000;
  font-weight: 400;
}

.gallery-item-counter {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.gallery-counter-text {
  display: inline-block;
}

.gallery-counter-current {
  font-weight: 600;
  color: #000;
}

/* ============================================
   INFO SECTION NAVIGATION
   ============================================ */

.gallery-info-navigation {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.gallery-info-nav-btn {
  min-width: 50px;
  height: 50px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  border: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-info-nav-btn svg {
  width: 16px;
  height: 16px;
  fill: white !important;
  flex-shrink: 0;
}

.gallery-info-nav-btn:hover {
  background: #333;
  transform: scale(1.05);
  color: white !important;
}

.gallery-info-nav-btn:hover svg {
  fill: white !important;
}

.gallery-albums-btn {
  background: #f0f0f0 !important;
  color: #333 !important;
}

.gallery-albums-btn:hover {
  background: #333 !important;
  color: #fff !important;
}

.gallery-albums-btn svg {
  fill: currentColor !important;
}

.gallery-album-nav-btn {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px !important;
  padding: 0 8px !important;
}

.gallery-album-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-album-nav-btn.disabled:hover {
  background: #000 !important;
  color: #999 !important;
}

/* ============================================
   ITEM THUMBNAILS (Multiple images for one artwork)
   ============================================ */

.lobo-item-thumbnails-strip {
    width: 100%;
    padding: 7px 0 7px 0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 0;
    margin-top: -26px;
    margin-bottom: 24px;
}

.lobo-item-thumbnails-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.lobo-item-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.lobo-item-thumb:hover {
  border-color: #666;
  transform: translateY(-3px);
}

.lobo-item-thumb.active {
  border-color: #000;
}

.lobo-item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   THUMBNAIL STRIP
   ============================================ */

.gallery-album-thumbnails {
  width: 100%;
  overflow-x: auto;
  padding: 0 20px 20px;
  box-sizing: border-box;
}

.gallery-thumbnails-list {
  display: flex;
  gap: 15px;
  min-width: max-content;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 150px;
  gap: 10px;
}

.gallery-thumbnail:hover {
  transform: translateY(-5px);
}

.gallery-thumbnail img,
.gallery-thumb-placeholder {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.gallery-thumbnail.active img,
.gallery-thumbnail.active .gallery-thumb-placeholder {
  border-color: #000;
}

.gallery-thumb-placeholder {
  display: flex;
}

.gallery-thumb-placeholder svg {
  width: 40px;
  height: 40px;
  fill: #ddd;
}

.gallery-thumb-title {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.gallery-album-empty {
  text-align: center;
  font-size: 18px;
  color: #999;
  padding: 60px 20px;
  font-style: italic;
}

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

@media (max-width: 1200px) {
  .gallery-album-main {
    gap: 30px;
  }

  .gallery-featured-nav {
    left: -40px;
    right: -40px;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-album-wrapper {
    padding-top: 40px;
    padding-bottom: 30px;
  }

  .gallery-album-header {
    margin-bottom: 25px;
  }

  .gallery-album-header h1 {
    font-size: 28px;
  }

  .gallery-album-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 30px;
  }

  .gallery-featured-nav {
    left: -30px;
    right: -30px;
  }

  .gallery-featured-info {
    order: -1;
  }

  .gallery-item-title {
    font-size: 24px;
  }

  .gallery-thumbnails-list {
    gap: 10px;
  }

  .gallery-thumbnail img,
  .gallery-thumb-placeholder {
    width: 100px;
    height: 100px;
  }

  .gallery-thumb-title {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .gallery-album-wrapper {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .gallery-album-header h1 {
    font-size: 22px;
  }

  .gallery-album-header {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .gallery-album-main {
    padding: 0 10px 20px;
  }

  .gallery-featured-image {
    margin-bottom: 15px;
  }

  .gallery-featured-expand {
    width: 36px;
    height: 36px;
    bottom: 10px;
    right: 10px;
  }

  .gallery-featured-expand svg {
    width: 18px;
    height: 18px;
  }

  .gallery-featured-nav {
    left: -20px;
    right: -20px;
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }

  .gallery-featured-info {
    padding: 0 10px;
  }

  .gallery-info-navigation {
    margin-top: 20px;
    padding-top: 20px;
  }

  .gallery-info-nav-btn {
    min-width: 44px;
    height: 44px;
    font-size: 10px;
    padding: 0 8px;
  }

  .gallery-info-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .gallery-item-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .gallery-item-meta {
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .gallery-meta-label {
    font-size: 11px;
  }

  .gallery-meta-value {
    font-size: 14px;
  }

  .gallery-album-thumbnails {
    padding: 0 10px 10px;
  }

  .gallery-thumbnails-list {
    gap: 8px;
  }

  .gallery-thumbnail img,
  .gallery-thumb-placeholder {
    width: 80px;
    height: 80px;
  }
}
