/* 
   KRRICE MILL Gallery Page Styles
   Modern and Professional Gallery Design
*/

/* Hero Section */
.gallery-hero {
    height: 70vh;
    min-height: 500px;
    background: url('../images/gallery-banner.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #ffffff;
    padding: 120px 0;
    margin-top: 70px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    opacity: 0.15;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-left: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 5px solid #ffc107;
    border-radius: 0 5px 5px 0;
    display: inline-block;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    display: inline-block;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.hero-breadcrumb a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.hero-breadcrumb a:hover {
    color: var(--primary-color);
}

.hero-breadcrumb .separator {
    margin: 0 10px;
    color: var(--white-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.hero-btn.primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.hero-btn.primary:hover {
    background-color: transparent;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-btn.secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.title-separator {
    width: 80px;
    height: 3px;
    background-color: var(--light-color);
    margin: 15px auto 20px;
    position: relative;
}

.title-separator span {
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    top: 0;
    left: 0;
}

/* Gallery Filter */
.gallery-section {
    padding: 80px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Show only the zoom icon on hover */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.view-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

.gallery-item:hover .view-image {
    transform: scale(1);
    opacity: 1;
}

.view-image:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) !important;
}

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

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

.lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white-color);
    padding: 20px 0;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--white-color);
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
}

/* Animation for lightbox */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.lightbox-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Load More Button */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.breadcrumb a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-hero {
        height: 60vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .gallery-section {
        padding: 70px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-filter {
        max-width: 90%;
        margin: 0 auto 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
        min-height: 400px;
        padding: 80px 0 60px;
        text-align: center;
    }

    .gallery-hero .container {
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .gallery-filter {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        max-width: 100%;
        padding-left: 15px;
        margin-bottom: 25px;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 0.85rem;
        margin-right: 5px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .image-overlay-content h3 {
        font-size: 1.1rem;
    }
    
    .image-overlay-content p {
        font-size: 0.85rem;
    }
    
    .view-image {
        width: 40px;
        height: 40px;
    }
    
    .view-image i {
        font-size: 1rem;
    }
    
    #load-more {
        margin-top: 30px;
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .lightbox-content {
        max-width: 90%;
    }
    
    .lightbox-image-container {
        max-height: 80vh;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        height: 45vh;
        min-height: 320px;
        padding: 70px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        max-width: 220px;
    }
    
    .hero-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .gallery-section {
        padding: 50px 0 30px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .gallery-filter {
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-right: 4px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .gallery-item {
        margin-bottom: 15px;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .image-overlay-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .image-overlay-content p {
        font-size: 0.8rem;
    }
    
    .view-image {
        width: 35px;
        height: 35px;
    }
    
    .view-image i {
        font-size: 0.9rem;
    }
    
    #load-more {
        margin-top: 25px;
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        padding: 10px;
    }
    
    .lightbox-image-container {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev, .lightbox-next {
        width: 35px;
        height: 35px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
}
