/* Added full width support via Elementor prefix class */
.elementor-widget-polaroid_gallery_cd956388.polaroid-full-width-cd956388-yes {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw !important;
}

.polaroid-board-cd956388 {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #d2b48c;
    /* Default pattern overlay if no custom image */
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.1"/%3E%3C/svg%3E');
    border: 10px solid #8b5a2b;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.polaroid-item-cd956388 {
    position: absolute;
    background: #fff;
    padding: 12px 12px 42px 12px; /* Classic thick Polaroid lower border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, z-index 0s, box-shadow 0.2s ease;
    width: 200px; /* Overridden by elementor controls */
    opacity: 0; /* Hidden until positioned */
    animation: fadeIn_cd956388 0.5s forwards;
    display: flex;
    flex-direction: column;
}

.polaroid-item-cd956388:hover {
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
    z-index: 100 !important;
}

.polaroid-inner-cd956388 {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.polaroid-inner-cd956388 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.polaroid-caption-cd956388 {
    text-align: center;
    margin-top: 10px; /* Space from the image */
    margin-bottom: -32px; /* Positioned gracefully inside the thick bottom padding */
    font-size: 14px;
    color: #333;
    font-family: 'Caveat', 'Comic Sans MS', cursive, sans-serif; /* A handwriting style by default */
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.polaroid-pin-cd956388 {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #cc0000;
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.4), 2px 2px 2px rgba(0,0,0,0.3);
}

@keyframes fadeIn_cd956388 {
    to { opacity: 1; }
}

/* Custom Lightbox */
.polaroid-lightbox-overlay-cd956388 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.polaroid-lightbox-overlay-cd956388.active {
    opacity: 1;
}

.polaroid-lightbox-content-cd956388 {
    background: #fff;
    padding: 15px 15px 55px 15px; /* Thicker lower border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.polaroid-lightbox-overlay-cd956388.active .polaroid-lightbox-content-cd956388 {
    transform: scale(1) rotate(-2deg);
}

.polaroid-lightbox-content-cd956388 img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    display: block;
}

.polaroid-lightbox-caption-cd956388 {
    text-align: center;
    margin-top: 15px;
    margin-bottom: -40px; /* Positioned inside the thick bottom border */
    font-size: 20px;
    color: #333;
    font-family: 'Caveat', 'Comic Sans MS', cursive, sans-serif;
}

.polaroid-lightbox-close-cd956388 {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-family: sans-serif;
    line-height: 1;
}
