/* Attraction child pages */
.pp-attraction-child main .container>.bg-white:first-child>figure.wp-block-image:first-child {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg);
}

.pp-attraction-child main .container>.bg-white:first-child>figure.wp-block-image:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pp-attraction-child .wp-block-gallery.has-nested-images {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    align-items: stretch;
}

.pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
}

.pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image>a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    outline: 0;
    box-shadow: 0 0 0 0 rgba(var(--medium-blue-color-rgb), 0);
    transition: box-shadow .2s ease;
}

.pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image>a:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--medium-blue-color-rgb), .35);
}

.pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform .25s ease, filter .25s ease;
}

@media (hover: hover) {
    .pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image>a:hover img {
        transform: scale(1.035);
        filter: brightness(.9);
    }
}

.pp-attraction-child details.wp-block-details {
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    background-color: var(--bs-body-bg);
}

.pp-attraction-child details.wp-block-details+details.wp-block-details {
    border-top: 0 !important;
}

.pp-attraction-child details.wp-block-details:first-of-type {
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
}

.pp-attraction-child details.wp-block-details:last-of-type {
    border-bottom-right-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}

.pp-attraction-child details.wp-block-details>summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    cursor: pointer;
    list-style: none;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
    user-select: none;
}

.pp-attraction-child details.wp-block-details>summary::-webkit-details-marker {
    display: none;
}

.pp-attraction-child details.wp-block-details>summary::marker {
    content: "";
}

.pp-attraction-child details.wp-block-details>summary::after {
    content: "";
    flex: 0 0 auto;
    width: .65rem;
    height: .65rem;
    margin-left: auto;
    margin-right: .2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.pp-attraction-child details.wp-block-details>summary:hover {
    background-color: var(--bs-tertiary-bg);
}

.pp-attraction-child details.wp-block-details>summary:focus-visible {
    position: relative;
    z-index: 1;
    outline: 0;
    box-shadow: inset 0 0 0 .25rem rgba(var(--medium-blue-color-rgb), .2);
}

.pp-attraction-child details.wp-block-details[open]>summary {
    color: var(--medium-blue);
    background-color: rgba(var(--medium-blue-color-rgb), .1);
}

.pp-attraction-child details.wp-block-details[open]>summary::after {
    transform: rotate(-135deg);
}

.pp-attraction-child details.wp-block-details>:not(summary) {
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    border-top: var(--bs-border-width) solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

#ppAttractionGalleryModal {
    --pp-gallery-control-size: 2.75rem;
    overflow: hidden !important;
    overscroll-behavior: none;
}

#ppAttractionGalleryModal .modal-dialog {
    height: 100%;
    width: auto;
    max-width: min(92vw, 90rem);
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
}

#ppAttractionGalleryModal .modal-content,
#ppAttractionGalleryModal .modal-body {
    max-height: 100%;
    min-height: 0;
}

#ppAttractionGalleryModal .pp-gallery-stage {
    width: auto;
    max-width: 100%;
}

#ppAttractionGalleryModal .pp-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 4rem);
    object-fit: contain;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
}

#ppAttractionGalleryModal .pp-gallery-close {
    z-index: 4;
    top: .6rem;
    right: .6rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--dark-blue);
    background-color: rgba(255, 255, 255, .92);
    box-shadow: 0 .2rem .75rem rgba(0, 0, 0, .25);
    opacity: 1;
    transition: color .2s ease, background-color .2s ease;
}

#ppAttractionGalleryModal .pp-gallery-close:hover,
#ppAttractionGalleryModal .pp-gallery-close:focus-visible {
    color: var(--bs-white);
    background-color: var(--medium-blue);
    opacity: 1;
}

#ppAttractionGalleryModal .pp-gallery-close svg {
    display: block;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

#ppAttractionGalleryModal .pp-gallery-control {
    z-index: 2;
    width: var(--pp-gallery-control-size);
    height: var(--pp-gallery-control-size);
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bs-white);
    background: rgba(0, 0, 0, .5);
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
    font-size: 2.25rem;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: background-color .2s ease, opacity .2s ease;
}

#ppAttractionGalleryModal .pp-gallery-control:hover,
#ppAttractionGalleryModal .pp-gallery-control:focus-visible {
    color: var(--bs-white);
    background: var(--medium-blue);
    box-shadow:
        0 0 0 .2rem rgba(255, 255, 255, .95),
        0 .35rem 1rem rgba(0, 0, 0, .4);
}

#ppAttractionGalleryModal .pp-gallery-control svg {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ppAttractionGalleryModal .pp-gallery-previous {
    left: 1rem;
}

#ppAttractionGalleryModal .pp-gallery-next {
    right: 1rem;
}

#ppAttractionGalleryModal .pp-gallery-info {
    margin-bottom: .75rem;
    padding: .35rem .65rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(0, 0, 0, .52);
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
}

.modal-backdrop.pp-gallery-backdrop {
    background-color: #061033;
    opacity: .68;
    backdrop-filter: blur(1px);
}

html.pp-gallery-open {
    overflow: hidden !important;
    background-color: #4f5975;
    overscroll-behavior: none;
    scrollbar-gutter: stable;
}

body.pp-gallery-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    overscroll-behavior: none;
}

body.admin-bar #ppAttractionGalleryModal {
    top: 46px;
    bottom: 0;
    height: auto;
}

body.admin-bar #ppAttractionGalleryModal .pp-gallery-image {
    max-height: calc(100dvh - 46px - 4rem);
}

@media (min-width: 768px) {
    .pp-attraction-child .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .75rem;
    }
}

@media (min-width: 992px) {
    .pp-attraction-child .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 782px) {
    body.admin-bar #ppAttractionGalleryModal {
        top: 32px;
        bottom: 0;
        height: auto;
    }

    body.admin-bar #ppAttractionGalleryModal .pp-gallery-image {
        max-height: calc(100dvh - 32px - 4rem);
    }
}

@media (max-width: 575.98px) {
    #ppAttractionGalleryModal .modal-dialog {
        max-width: none;
    }

    #ppAttractionGalleryModal .pp-gallery-image {
        max-height: calc(100dvh - 2rem);
        border-radius: var(--bs-border-radius);
    }

    #ppAttractionGalleryModal .pp-gallery-control {
        --pp-gallery-control-size: 2.5rem;
    }

    #ppAttractionGalleryModal .pp-gallery-previous {
        left: .5rem;
    }

    #ppAttractionGalleryModal .pp-gallery-next {
        right: .5rem;
    }

    #ppAttractionGalleryModal .pp-gallery-info {
        margin-bottom: .5rem;
    }

    body.admin-bar #ppAttractionGalleryModal .pp-gallery-image {
        max-height: calc(100dvh - 46px - 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image>a,
    .pp-attraction-child .wp-block-gallery.has-nested-images>figure.wp-block-image img,
    #ppAttractionGalleryModal .pp-gallery-control {
        transition: none;
    }

    .pp-attraction-child details.wp-block-details>summary,
    .pp-attraction-child details.wp-block-details>summary::after {
        transition: none;
    }
}
