.main-content {
    max-width: 90% !important;
    padding: 0 !important;
}

/* Gallery Section Styles */
#gallery {
    padding: 20px 10px; 
}

.gallery-container {
    max-width: 98%; 
    margin: 0 auto;
}

/* Main Slider Blocks */
.gallery-main-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-slider-block {
    background-color: var(--card-bg-light);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; 
    box-sizing: border-box;
}

body.dark-mode .gallery-slider-block {
    background-color: var(--card-bg-dark);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-slider-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 650px; 
    overflow: hidden;
    border-radius: 10px;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: zoom-in;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 30%;
    transition: background-color 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary-orange);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.block-caption {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(211, 84, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    z-index: 5;
}

/* Standard Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
}

.gallery-item {
    background-color: var(--card-bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

body.dark-mode .gallery-item {
    background-color: var(--card-bg-dark);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-orange);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .slider-container {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .gallery-main-blocks {
        grid-template-columns: 1fr;
    }

    .slider-container {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 0 15px !important;
    }
}