/* 
   Kitta Towerhouse Website
   Gallery Page Stylesheet
*/

/* ===== GALLERY SPECIFIC STYLES ===== */

/* Banner section */
.page-banner {
    height: 40vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Landscape_Medium_720x480_MediumRes_2-min.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 0;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Gallery Filters */
.section-padding-sm {
    padding: 30px 0;
}

.gallery-filters {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.filter-heading {
    text-align: center;
    margin-bottom: 20px;
}

.filter-heading h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Masonry Gallery */
.masonry-gallery {
    columns: 4;
    column-gap: 20px;
    margin: 40px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: all 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover::after {
    opacity: 1;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.modal-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.modal-controls button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.modal-controls button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
}

.btn-translate {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-translate i {
    margin-right: 6px;
    font-size: 16px;
}

.btn-translate:hover {
    background-color: #eaeaea;
}

.translated .btn-translate {
    background-color: #4a7c59;
    color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .masonry-gallery {
        columns: 3;
    }
}

@media (max-width: 991px) {
    .language-switcher {
        position: absolute;
        right: 80px;
        top: 25px;
    }
    
    .btn-translate {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .filter-btn {
        padding: 7px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        columns: 2;
        column-gap: 15px;
        margin: 25px 0;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .masonry-item {
        margin-bottom: 15px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-controls button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .masonry-gallery {
        columns: 2;
        column-gap: 10px;
        margin: 20px 0;
    }
    
    .masonry-item {
        margin-bottom: 10px;
        border-radius: 6px;
    }
    
    .masonry-item:hover {
        transform: translateY(-3px);
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .language-switcher {
        right: 70px;
        top: 22px;
    }
    
    .btn-translate i {
        margin-right: 0;
    }
    
    .btn-translate span {
        display: none;
    }
    
    .section-padding-sm {
        padding: 20px 0;
    }
    
    .filter-heading h2 {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
        margin-bottom: 5px;
        border-radius: 20px;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .gallery-modal {
        padding-top: 30px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-controls {
        bottom: 15px;
    }
    
    .modal-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 5px;
    }
}

@media (max-width: 375px) {
    .masonry-gallery {
        columns: 1;
        column-gap: 0;
    }
    
    .masonry-item {
        margin-bottom: 15px;
    }
} 