/**
 * Photo Frame Gallery Widget Styles
 * Styles for the photo frame gallery widget with white borders and rotation effects
 */

.photo-frame-gallery-wrapper {
    width: 100%;
    position: relative;
}

.photo-frame-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

/* Single Image Layout */
.photo-frame-gallery-single {
    justify-content: center;
}

.photo-frame-gallery-single .photo-frame-item {
    width: 100%;
    max-width: 600px;
}

/* Two Images Layout */
.photo-frame-gallery-two {
    justify-content: space-around;
    align-items: flex-start;
}

.photo-frame-gallery-two .photo-frame-item {
    flex: 0 1 calc(50% - 20px);
    max-width: 500px;
}

/* Three Images Layout */
.photo-frame-gallery-three {
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.photo-frame-gallery-three .photo-frame-item {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 400px;
    position: relative;
}

.photo-frame-gallery-three .photo-frame-item:nth-child(1) {
    margin-top: 0;
}

.photo-frame-gallery-three .photo-frame-item:nth-child(2) {
    margin-top: 20px;
}

.photo-frame-gallery-three .photo-frame-item:nth-child(3) {
    margin-top: 40px;
}

/* Photo Frame Item */
.photo-frame-item {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
    margin: 10px;
}

.photo-frame-item:hover {
    z-index: 10;
}

/* Photo Frame */
.photo-frame {
    position: relative;
    background: #ffffff;
    border: 10px solid #ffffff;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block;
    transition: box-shadow 0.3s ease;
}

.photo-frame-item:hover .photo-frame {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Photo Frame Image */
.photo-frame-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Photo Frame Link */
.photo-frame-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-frame-link:hover {
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .photo-frame-gallery-three .photo-frame-item {
        flex: 0 1 calc(50% - 20px);
        max-width: 100%;
    }
    
    .photo-frame-gallery-three .photo-frame-item:nth-child(3) {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .photo-frame-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .photo-frame-gallery-single .photo-frame-item,
    .photo-frame-gallery-two .photo-frame-item,
    .photo-frame-gallery-three .photo-frame-item {
        flex: 0 1 100%;
        max-width: 100%;
        margin: 15px 0;
    }
    
    .photo-frame-gallery-three .photo-frame-item:nth-child(2),
    .photo-frame-gallery-three .photo-frame-item:nth-child(3) {
        margin-top: 15px;
    }
    
    .photo-frame {
        border-width: 8px;
    }
}

@media (max-width: 480px) {
    .photo-frame {
        border-width: 6px;
    }
    
    .photo-frame-item {
        margin: 10px 0;
    }
}

