/* assets/branch.css */

/* --- Animation: Fade In Up --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.animate-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    opacity: 0;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* --- Hero Section --- */
.branch-hero {
    /* background-image ถูกกำหนดใน HTML (Inline Style) */
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.branch-hero::before {
    content: '';
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
}
.branch-title {
    position: relative;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- Info Cards --- */
.info-section {
    margin-top: -60px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}
.info-card {
    background: #fff;
    padding: 40px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #D4AF37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.info-icon {
    color: #D4AF37;
    font-size: 2rem;
    margin-bottom: 20px;
}
.info-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.info-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}
.map-frame {
    width: 100%;
    height: 300px;
    border: 0;
    margin-top: 20px;
}

/* --- Gallery Grid --- */
.gallery-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Lightbox --- */
.lightbox-modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-content {
    max-width: 90%; max-height: 90vh; object-fit: contain;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: scale(0.9); transition: transform 0.3s ease;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: #f1f1f1; font-size: 40px; font-weight: bold;
    cursor: pointer; z-index: 10000; transition: 0.3s;
}
.lightbox-modal.show { display: flex; opacity: 1; }
.lightbox-modal.show .lightbox-content { transform: scale(1); }