/* Photo Gallery Widget Styles */

.photo-gallery-widget {
    width: 100%;
    margin: 0 auto;
    background-color: #1e3268;
    color: #FFFFFF;
}

.photo-gallery-widget-inner {
    padding: 30px 40px;
}

.photo-gallery-grid {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* Top and Bottom Image Sections */
.photo-gallery-top-images,
.photo-gallery-bottom-images {
    position: relative;
    min-height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Polaroid Image Styles */
.photo-gallery-image {
    position: absolute;
    background: white;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.photo-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positioning for 4 images - 2 top, 2 bottom */
.photo-gallery-grid.images-4 .photo-gallery-image-1 {
    width: 240px;
    height: 270px;
    left: 15%;
    top: 10px;
    transform: rotate(-8deg);
}

.photo-gallery-grid.images-4 .photo-gallery-image-2 {
    width: 240px;
    height: 270px;
    right: 15%;
    top: 20px;
    transform: rotate(6deg);
}

.photo-gallery-grid.images-4 .photo-gallery-image-3 {
    width: 240px;
    height: 270px;
    left: 15%;
    top: 15px;
    transform: rotate(5deg);
}

.photo-gallery-grid.images-4 .photo-gallery-image-4 {
    width: 240px;
    height: 270px;
    right: 15%;
    top: 5px;
    transform: rotate(-7deg);
}

/* Positioning for 5 images - 2 top, 3 bottom */
.photo-gallery-grid.images-5 .photo-gallery-image-1 {
    width: 220px;
    height: 250px;
    left: 15%;
    top: 15px;
    transform: rotate(9deg);
}

.photo-gallery-grid.images-5 .photo-gallery-image-2 {
    width: 220px;
    height: 250px;
    right: 15%;
    top: 5px;
    transform: rotate(-5deg);
}

.photo-gallery-grid.images-5 .photo-gallery-image-3 {
    width: 220px;
    height: 250px;
    left: 10%;
    top: 10px;
    transform: rotate(-5deg);
}

.photo-gallery-grid.images-5 .photo-gallery-image-4 {
    width: 220px;
    height: 250px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%) rotate(3deg);
}

.photo-gallery-grid.images-5 .photo-gallery-image-5 {
    width: 220px;
    height: 250px;
    right: 10%;
    top: 8px;
    transform: rotate(6deg);
}

/* Positioning for 6 images - 3 top, 3 bottom */
.photo-gallery-grid.images-6 .photo-gallery-image-1 {
    width: 200px;
    height: 230px;
    left: 10%;
    top: 12px;
    transform: rotate(-7deg);
}

.photo-gallery-grid.images-6 .photo-gallery-image-2 {
    width: 200px;
    height: 230px;
    left: 50%;
    top: 25px;
    transform: translateX(-50%) rotate(4deg);
}

.photo-gallery-grid.images-6 .photo-gallery-image-3 {
    width: 200px;
    height: 230px;
    right: 10%;
    top: 8px;
    transform: rotate(6deg);
}

.photo-gallery-grid.images-6 .photo-gallery-image-4 {
    width: 200px;
    height: 230px;
    left: 10%;
    top: 10px;
    transform: rotate(5deg);
}

.photo-gallery-grid.images-6 .photo-gallery-image-5 {
    width: 200px;
    height: 230px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%) rotate(-5deg);
}

.photo-gallery-grid.images-6 .photo-gallery-image-6 {
    width: 200px;
    height: 230px;
    right: 10%;
    top: 5px;
    transform: rotate(-7deg);
}

/* CTA Section */
.photo-gallery-cta {
    position: relative;
    z-index: 5;
    background-color: transparent;
    color: #FFFFFF;
    text-align: center;
    padding: 30px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.photo-gallery-cta-content {
    width: 100%;
}

.photo-gallery-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #FFFFFF;
}

.photo-gallery-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
}

.photo-gallery-description h1,
.photo-gallery-description h2,
.photo-gallery-description h3,
.photo-gallery-description h4,
.photo-gallery-description h5,
.photo-gallery-description h6 {
    color: #FFFFFF;
    margin-bottom: 12px;
    margin-top: 16px;
}

    .photo-gallery-description p {
        margin-bottom: 2rem;
        font-size: 1.5rem;
        line-height: 1.2;
        letter-spacing: -4%;
        font-weight: 300;
    }

.photo-gallery-description a {
    color: #FFD255;
    text-decoration: underline;
}

.photo-gallery-description a:hover {
    color: #ffc933;
}

.photo-gallery-description ul,
.photo-gallery-description ol {
    margin-bottom: 12px;
    padding-left: 30px;
}

.photo-gallery-description img {
    max-width: 100%;
    height: auto;
}

.photo-gallery-description strong {
    font-weight: 700;
}

.photo-gallery-description em {
    font-style: italic;
}

/* Buttons */
.photo-gallery-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.photo-gallery-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 99px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.photo-gallery-btn-primary {
    background-color: #FFD255;
    color: #1e3268;
}

.photo-gallery-btn-primary:hover {
    background-color: #ffc933;
    color: #1e3268;
}

.photo-gallery-btn-secondary {
    background-color: #FFFFFF;
    color: #1e3268;
}

.photo-gallery-btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e3268;
}

/* Rich Text Content */
.photo-gallery-richtext {
    color: #FFFFFF;
    font-size: 17px;
    line-height: 1.6;
}

.photo-gallery-richtext h1,
.photo-gallery-richtext h2,
.photo-gallery-richtext h3,
.photo-gallery-richtext h4,
.photo-gallery-richtext h5,
.photo-gallery-richtext h6 {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.photo-gallery-richtext p {
    margin-bottom: 16px;
}

.photo-gallery-richtext a {
    color: #FFD255;
    text-decoration: underline;
}

.photo-gallery-richtext a:hover {
    color: #ffc933;
}

.photo-gallery-richtext ul,
.photo-gallery-richtext ol {
    margin-bottom: 16px;
    padding-left: 30px;
}

.photo-gallery-richtext img {
    max-width: 100%;
    height: auto;
}

/* Tablet Responsive (768px - 1023px) */
@media (max-width: 1023px) {
    .photo-gallery-widget-inner {
        padding: 30px 30px;
    }

    .photo-gallery-top-images,
    .photo-gallery-bottom-images {
        min-height: 260px;
    }

    /* Adjust image sizes for tablet */
    .photo-gallery-grid.images-4 .photo-gallery-image-1,
    .photo-gallery-grid.images-4 .photo-gallery-image-2,
    .photo-gallery-grid.images-4 .photo-gallery-image-3,
    .photo-gallery-grid.images-4 .photo-gallery-image-4 {
        width: 200px;
        height: 240px;
    }

    .photo-gallery-grid.images-5 .photo-gallery-image-1,
    .photo-gallery-grid.images-5 .photo-gallery-image-2,
    .photo-gallery-grid.images-5 .photo-gallery-image-3,
    .photo-gallery-grid.images-5 .photo-gallery-image-4,
    .photo-gallery-grid.images-5 .photo-gallery-image-5 {
        width: 180px;
        height: 220px;
    }

    .photo-gallery-grid.images-6 .photo-gallery-image-1,
    .photo-gallery-grid.images-6 .photo-gallery-image-2,
    .photo-gallery-grid.images-6 .photo-gallery-image-3,
    .photo-gallery-grid.images-6 .photo-gallery-image-4,
    .photo-gallery-grid.images-6 .photo-gallery-image-5,
    .photo-gallery-grid.images-6 .photo-gallery-image-6 {
        width: 160px;
        height: 200px;
    }

    .photo-gallery-cta {
        padding: 30px 40px;
    }

    .photo-gallery-title {
        font-size: 32px;
    }

    .photo-gallery-description {
        font-size: 16px;
    }
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
    .photo-gallery-widget-inner {
        padding: 30px 20px;
    }

    .photo-gallery-grid {
        gap: 20px;
    }

    .photo-gallery-top-images,
    .photo-gallery-bottom-images {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        min-height: auto;
        padding: 0 10px;
    }

    /* Reset absolute positioning for mobile */
    .photo-gallery-image {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none;
        margin: 0;
    }

    .photo-gallery-image img {
        height: 200px;
    }

    .photo-gallery-description p {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    /* Alternate tilts for visual interest on mobile */
    .photo-gallery-image-1 {
        transform: rotate(-3deg) !important;
    }

    .photo-gallery-image-2 {
        transform: rotate(2deg) !important;
        margin-top: 60px;
    }

    .photo-gallery-image-3 {
        transform: rotate(-2deg) !important;
    }

    .photo-gallery-image-4 {
        transform: rotate(3deg) !important;
        margin-top: 80px;
    }

    .photo-gallery-image-5 {
        transform: rotate(-2deg) !important;
/*        margin-left: 50%;*/
    }

    .photo-gallery-image-6 {
        transform: rotate(2deg) !important;
    }

    .photo-gallery-cta {
        padding: 40px 20px;
    }

    .photo-gallery-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .photo-gallery-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .photo-gallery-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .photo-gallery-btn {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .photo-gallery-widget-inner {
        padding: 24px 16px;
    }

    .photo-gallery-top-images,
    .photo-gallery-bottom-images {
        gap: 30px;
        padding: 0 5px;
    }

    .photo-gallery-bottom-images {
        margin-top: -50px;
    }

    .photo-gallery-image img {
        height: 160px;
    }

    .photo-gallery-cta {
        padding: 32px 16px;
    }

    .photo-gallery-title {
        font-size: 2.625rem;
    }

    .photo-gallery-description {
        font-size: 0.875rem;
    }

    .location-address{
        font-size: 0.875rem;
    }
}
