@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.gallery-ribbon {
    position: absolute;
    top: 38px;
    left: -38px;
    transform: rotate(239deg);
    z-index: 5;
    opacity: 0;
    animation: stampIn 1.4s ease-out forwards 1.8s;
    transform-origin: center;
}
@keyframes stampIn {
    0% {
        opacity: 0;
        transform: rotate(-45deg) scale(0.6) translateY(-50px);
        filter: blur(3px);
    }
    60% {
        opacity: 1;
        transform: rotate(-45deg) scale(1.15) translateY(6px);
        filter: blur(0);
    }
    80% {
        transform: rotate(-45deg) scale(0.92) translateY(0);
    }
    100% {
        opacity: 1;
        transform: rotate(-45deg) scale(1);
    }
}
.ribbon-inner::after {
    content: '★';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-20%);
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.gallery-details {
    display: flex;
    gap: 18px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
    margin-top: 10px;
}
.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1s;
    margin: 10px;
}
#priceDisplayFl {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
@media (max-width: 768px) {
    .horizontal-gallery-box {
        flex-direction: column;
        align-items: center;
        padding: 4px 4px;
        width: 95%;
    }
    .gallery-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .gallery-basic-info {
        width: 90%;
        border: none;
    }
    .gallery-basic-info span {
        margin-bottom: 3px;
        column-gap: 5px;
        font-size: 12px;
        width: 80%;
    }
    .gallery-details {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 6px;
        margin: 5px auto;
    }
    .detail-item {
        min-width: 0;
        height: 60px;
        padding: 10px;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border-radius: 2px;
    }
    .detail-icon {
        font-size: 8px;
        display: none;
    }
    .detail-label {
        font-size: 12px;
        color: #ccc;
        order: 1;
        margin: 0 !important;
        padding: 0 !important;
    }
    .detail-value {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        order: 2;
        margin: 1px !important;
        padding: 0 !important;
    }
    .price-section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 2px;
    }
    .price-title {
        font-size: 13px;
    }
    #priceDisplayFl {
        font-size: 16px;
    }
    .refresh-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .gallery-ribbon {
        top: 14px;
        left: -35px;
        transform: rotate(-45deg) scale(0.7);
    }
    .ribbon-inner {
        padding: 6px 40px;
        font-size: 12px;
    }
}
.gallery1 {
    margin: 50px 0;
    padding-bottom: 10px;
    padding-top: 10px;
}
.thumbnails-container-gl {
    display: flex;
    gap: 1%;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    margin: auto;
    align-content: space-between;
}
.thumbnail-gl {
    width: 10%;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s, filter .25s;
    position: relative;
}
.thumbnail-gl img {
  */
    object-fit: cover;
}
.thumbnail-gl.active-gl {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 200, 0, .6);
    filter: brightness(1.15);
}
.middle-section-gl {
    display: flex;
    gap: 25px;
    width: 100%;
}
.info-column-gl {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20%;
}
.info-inner-box-gl {
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-align: center;
}
.info-content-gl {
    font-size: 14px;
    font-weight: 600;
    transition: .4s;
}
.info-content-gl.fade-out-gl {
    opacity: 0;
    transform: translateY(-6px);
}
.info-content-gl.fade-in-gl {
    opacity: 1;
    transform: translateY(0);
}
.img-container-gl {
    flex: 1;
    position: relative;
    height: 500px;
    perspective: 1400px;
    overflow: visible;
    cursor: pointer;
}
.box-gl {
    position: absolute;
    top: 50%;
    transform-origin: center;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition:
        transform .55s cubic-bezier(.25, .46, .45, .94),
        opacity .45s ease,
        right .45s cubic-bezier(.25, .46, .45, .94);
}
.box-gl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.control-section-gl {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}
.control-btn-gl {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
}
.control-btn-gl:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}
.control-btn-gl.stopped-gl {
    background: rgb(112 112 112 / 30%);
    border: 2px solid #d109ee;
}
.control-btn-gl.stopped-gl i {
    color: #fa20ff;
}
@keyframes attentionPulse-gl {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}
.control-btn-gl.attention-animation-gl {
    animation: attentionPulse-gl 0.8s ease;
}
.detail-overlay-gl {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn .2s ease forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        transform: scale(.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.detail-close-gl {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, .2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}
.detail-close-gl:hover {
    background: rgba(255, 255, 255, .35);
}
.detail-title-gl {
    font-size: 24px;
    margin-bottom: 8px;
}
.detail-body-gl {
    font-size: 15px;
    line-height: 1.8;
}
@media (max-width: 768px) {
    .gallery-container-gl {
        padding: 5px;
        gap: 5px;
        width: 90%;
    }
    .thumbnails-container-gl {
        order: 1;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        overflow: hidden;
        gap: 5px;
        padding: 5px 0;
        width: 100%;
    }
    .thumbnail-gl {
        flex: 1;
        min-width: 0;
        border-radius: 8px;
    }
    .middle-section-gl {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        order: 2;
        height: 60vh;
    }
    .img-container-gl {
        width: 100%;
        order: 1;
        flex: 2;
    }
    .info-column-gl {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        height: auto;
        overflow: hidden;
        flex: .5;
        justify-content: space-between;
    }
    .info-item-gl {
        min-width: 0;
        height: 70px;
        padding: 1px;
        border-radius: 2px;
        text-align: center;
        box-sizing: border-box;
        margin: 1px;
        align-content: center;
        border-radius: 5px;
    }
    .info-item-gl i {
        display: none;
    }
    .info-inner-box-gl {
        padding: 1px;
        border-radius: 1px;
    }
    .info-title-gl {
        font-size: 10px;
        border-radius: 1px;
        padding: 2px 0;
    }
    .info-content-gl {
        font-size: 10px;
        text-align: center;
        margin: 3px 0;
    }
    .control-section-gl {
        bottom: -40px;
    }
    .control-btn-gl {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
.detail-overlay-gl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
    animation: fadeIn-gl 0.3s ease forwards;
}
@keyframes fadeIn-gl {
    to {
        opacity: 1;
    }
}
@keyframes scaleIn-gl {
    to {
        transform: scale(1);
    }
}
.detail-title-gl {
    font-size: 24px;
    margin-bottom: 10px;
}
.detail-body-gl {
    color: white;
    line-height: 1.8;
    font-size: 16px;
}
.detail-close-gl {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.detail-close-gl:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
 