.pg-4f80fee2-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

@media (min-width: 992px) {
    .pg-4f80fee2-layout {
        flex-direction: row;
        align-items: center;
    }
    .pg-4f80fee2-layout.pg-4f80fee2-pos-right {
        flex-direction: row-reverse;
    }
    .pg-4f80fee2-info-box {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .pg-4f80fee2-gallery-container {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

.pg-4f80fee2-info-box {
    border-left: 4px solid #1C244B;
    padding-left: 20px;
}

.pg-4f80fee2-global-title {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1C244B;
    line-height: 1.2;
}

.pg-4f80fee2-global-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

.pg-4f80fee2-gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.pg-4f80fee2-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
}

.pg-4f80fee2-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.pg-4f80fee2-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pg-4f80fee2-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.pg-4f80fee2-item {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.pg-4f80fee2-item:focus-visible {
    outline: 3px solid #1C244B;
    outline-offset: 2px;
}

.pg-4f80fee2-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f7f7f7;
}

.pg-4f80fee2-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pg-4f80fee2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 36, 75, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.pg-4f80fee2-overlay span {
    color: #ffffff;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Hover effects */
@media (hover: hover) {
    .pg-4f80fee2-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .pg-4f80fee2-item:hover img {
        transform: scale(1.05);
    }
    
    .pg-4f80fee2-item:hover .pg-4f80fee2-overlay {
        opacity: 1;
    }

    .pg-4f80fee2-item:hover .pg-4f80fee2-overlay span {
        transform: scale(1);
    }
}

/* Navigation arrows */
.pg-4f80fee2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1C244B;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    transition: opacity 0.3s, transform 0.3s;
}

.pg-4f80fee2-arrow-left {
    left: -20px;
}

.pg-4f80fee2-arrow-right {
    right: -20px;
}

.pg-4f80fee2-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .pg-4f80fee2-arrow {
        display: none;
    }
    .pg-4f80fee2-item {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Lightbox styles */
.pg-4f80fee2-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    touch-action: none;
    font-family: inherit;
}

.pg-4f80fee2-lightbox.active {
    opacity: 1;
}

.pg-4f80fee2-lightbox-media-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pg-4f80fee2-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.pg-4f80fee2-lightbox-img.loaded {
    opacity: 1;
}

/* Fix mobile/desktop icons in buttons explicitly with robust SVG inline rendering as background */
.pg-4f80fee2-lightbox-btn {
    position: absolute;
    background-color: #1C244B;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    transition: transform 0.2s, background-color 0.2s;
    color: #ffffff;
}

.pg-4f80fee2-lightbox-btn span {
    font-size: 1.4rem;
    display: inline-block;
    color: #ffffff;
}

.pg-4f80fee2-lightbox-btn:focus-visible {
    outline: 3px solid #ffffff;
}

.pg-4f80fee2-lightbox-close {
    top: 20px;
    right: 20px;
}

.pg-4f80fee2-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.pg-4f80fee2-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.pg-4f80fee2-lightbox-btn:hover {
    transform: scale(1.1);
    background-color: #2a356b;
}

.pg-4f80fee2-lightbox-prev:hover,
.pg-4f80fee2-lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.pg-4f80fee2-lightbox-info {
    color: #fff;
    margin-top: 20px;
    text-align: center;
    max-width: 80%;
}

.pg-4f80fee2-lightbox-caption {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #ffffff;
    min-height: 1.5rem;
}

.pg-4f80fee2-lightbox-counter {
    font-size: 0.85rem;
    color: #aaa;
}

.pg-4f80fee2-lightbox-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.pg-4f80fee2-lightbox-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
}

.pg-4f80fee2-lightbox-indicator span.active {
    background-color: #ffffff !important;
}

@media (max-width: 768px) {
    .pg-4f80fee2-lightbox-btn {
        width: 40px;
        height: 40px;
        /* Force display on mobile */
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .pg-4f80fee2-lightbox-prev { left: 10px; }
    .pg-4f80fee2-lightbox-next { right: 10px; }
    .pg-4f80fee2-lightbox-close { top: 10px; right: 10px; }
}
