/* Gallery Banner Section */
.gallery-banner {
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.gallery-banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gallery-banner-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-banner-content {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    min-height: 450px;
}

.gallery-banner-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.gallery-frames {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.frame {
    background-color: #d4a574;
    border: 8px solid #8b6f47;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.frame-1 {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
}

.frame-2 {
    grid-column: 2;
    grid-row: 1 / 3;
    aspect-ratio: 2/3;
}

.frame-3 {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1;
}

.frame-content {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.frame-content::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0 0px,
        #f0f0f0 10px,
        #fff 10px,
        #fff 20px
    );
    opacity: 0.3;
}

.gallery-banner-separator {
    width: 4px;
    background-color: #002633;
    min-height: 300px;
    flex-shrink: 0;
}

.gallery-banner-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    padding-left: 830px;
    padding-top: 400px;
    /*min-height: 400px;*/
}

.gallery-banner-title {
    font-size: 32px;
    color: #4caf50;
    font-weight: 600;
    margin: 0;
    font-family: serif;
}

/* Gallery Section */
.gallery-section {
    background-color: #E5E5E5;
    padding: 40px 0 60px;
    min-height: 100vh;
}

.gallery-header {
    background-color: #fff;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.gallery-title {
    font-size: 28px;
    color: #4caf50;
    font-weight: 600;
    margin: 0;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
}

.show-entries {
    display: flex;
    align-items: center;
    gap: 10px;
}

.show-entries span {
    font-size: 14px;
    color: #333;
}

.show-entries select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.entries-info {
    font-size: 14px;
    color: #333;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.gallery-lightbox .lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox .lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    background: #000;
}

.gallery-lightbox .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background-color: #f5f5f5;
}

.page-number.active {
    background-color: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .gallery-image {
        height: 250px;
    }
}
