/* ===== PHOTO GALLERY SECTION ===== */

.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.gallery-section .section-title {
    color: #1a1410;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-section .section-subtitle {
    color: #666;
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 60px;
}

/* Masonry Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-info p {
    color: #5BC4B6;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Special Sizes */
.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-tall {
    grid-row: span 2;
}

/* Trust Stats */
.trust-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 50px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #27AE9C;
    margin-bottom: 10px;
    font-family: 'Kanit', serif;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ===== FLOATING CTA BUTTON ===== */

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #27AE9C 0%, #5BC4B6 100%);
    color: #1a1410;
    padding: 18px 35px;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #5BC4B6 0%, #27AE9C 100%);
}

.floating-cta i {
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.floating-cta-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .trust-stats {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-section .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-large,
    .gallery-wide,
    .gallery-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .trust-stats {
        flex-direction: column;
        gap: 30px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .floating-cta-text {
        display: none;
    }
}

/* Accessibility */
.gallery-item:focus {
    outline: 3px solid #27AE9C;
    outline-offset: 3px;
}

.floating-cta:focus {
    outline: 3px solid #27AE9C;
    outline-offset: 3px;
}

/* Loading Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
