/**
 * GALLERY STYLES - Photo Albums & Lightbox
 * Mobile-first responsive design
 */

/* ============================================
   GALLERY HERO
============================================ */
.gallery-hero {
    background: linear-gradient(135deg, #D4A574 0%, #2C3E50 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.gallery-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 12px 0 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ALBUM GRID - Service Albums Overview
============================================ */
.album-grid-section {
    padding: 60px 20px;
    background: #f9fafb;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.album-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.album-cover {
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: #f0f0f0;
    overflow: hidden;
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.placeholder-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
}

.placeholder-cover svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.placeholder-cover p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.album-info {
    padding: 20px;
}

.album-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 8px;
}

.album-price {
    color: #D4A574;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.album-card.no-photos {
    opacity: 0.6;
}

.album-card.no-photos:hover {
    transform: none;
}

/* ============================================
   ALBUM DETAIL - Individual Album View
============================================ */
.album-detail-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
    color: white;
    padding: 40px 20px 60px;
}

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.album-detail-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.album-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

.album-detail-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 20px;
    line-height: 1.6;
}

.album-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    white-space: nowrap;
}

.meta-separator {
    color: rgba(255,255,255,0.4);
}

.btn-book-album {
    min-width: 200px;
}

/* ============================================
   PHOTO GRID - Photos in Album
============================================ */
.photo-grid-section {
    padding: 60px 20px;
    background: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #D4A574;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   EMPTY STATE
============================================ */
.empty-album {
    padding: 80px 20px;
    background: #f9fafb;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.empty-state svg {
    color: #ccc;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2C3E50;
    margin: 0 0 12px;
}

.empty-state p {
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ============================================
   LIGHTBOX - Full Screen Photo View
============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    text-align: center;
    color: white;
}

.lightbox-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 16px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   TABLET RESPONSIVE
============================================ */
@media (min-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 40px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .album-detail-title {
        font-size: 3rem;
    }
}

/* ============================================
   DESKTOP RESPONSIVE
============================================ */
@media (min-width: 1024px) {
    .gallery-hero {
        padding: 120px 20px 80px;
    }
    
    .album-grid-section {
        padding: 80px 20px;
    }
    
    .photo-grid-section {
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .album-detail-title {
        font-size: 3.5rem;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
}

/* ============================================
   ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
    .album-card,
    .photo-item,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        transition: none;
    }
}
