.pin-gallery-ace8d26e {
    width: 100%;
    perspective: 1000px;
}

.pin-item-ace8d26e {
    position: relative;
    break-inside: avoid;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    --pin-hover-scale: 1.08;
    transform-style: preserve-3d;
    transform: perspective(1000px) scale(1) rotateX(0deg) rotateY(0deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
    display: block;
}

.pin-item-ace8d26e:hover {
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.pin-img-ace8d26e {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-overlay-ace8d26e {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.pin-item-ace8d26e:hover .pin-overlay-ace8d26e {
    opacity: 1;
}

.pin-caption-ace8d26e {
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

/* Lightbox styles */
.pin-lightbox-ace8d26e {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.admin-bar .pin-lightbox-ace8d26e {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .pin-lightbox-ace8d26e {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.pin-lightbox-ace8d26e.active {
    opacity: 1;
}

.pin-lightbox-content-ace8d26e {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-lightbox-ace8d26e.active .pin-lightbox-content-ace8d26e {
    transform: scale(1);
}

.pin-lightbox-img-ace8d26e {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    display: block;
}

.pin-lightbox-close-ace8d26e {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}

/* Pill Button in Lightbox */
.pin-lightbox-btn-ace8d26e {
    display: inline-block;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 50px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.pin-lightbox-btn-ace8d26e:hover {
    transform: scale(1.05);
}
