/* ========== GALLERY ========== */
.wp-block-gallery {
    -webkit-column-count: 2;
    column-count: 2; 
    display: block;
    margin-bottom: 0;
}

.wp-block-gallery .wp-block-image {
    break-inside: avoid; 
    /* margin-bottom: 5px; */
    /* height: 500px; */
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; 
}

body .is-layout-flex .wp-block-gallery {
    display: block;
}

.wp-block-gallery.has-nested-images.is-layout-flex.wp-block-gallery-is-layout-flex {
    display: block;
}

.wp-block-image.size-large img {
    width: 100%;
    height: auto;
}

/* ========== DETAILS ========== */
.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow {
    border-top: 2px solid #000;
}

body .wp-block-details.is-layout-flow.wp-block-details-is-layout-flow:last-of-type {
    border-bottom: 2px solid #000;
}

details summary::marker,
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
    color: black;
    cursor: pointer;
    padding-top: 18px;
    padding-bottom: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 30px;
    position: relative;
    padding-left: 5px;
    box-sizing: border-box;
}

summary:hover {
    background-color: orange;
    box-shadow: 0 0 12px 0px orange;
    transition: 0.3s ease-in-out;
}

summary::after {
    content: "\002B";
    font-size: 50px;
    color: black;
    margin-right: 10px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

details[open] summary::after {
    content: "\2212"; 
}

details[open] summary {
    background-color: orange;
    box-shadow: 0 0 12px 0px orange;
    transition: 0.3s ease-in-out;
}

details {
    border-top: 2px solid;
    position: relative;
}

details p {
    margin-top: 10px;
}

details .wp-block-button a {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid black;
    background-color: transparent;
    border-radius: 40px;
    text-decoration: none;
    color: #000;
    font-size: 20px;
}

details .wp-block-button:hover a {
    border: 2px solid black;
    color: white;
    background-color: black;
}

/* ========== BUTTONS ========== */
.wp-block-buttons.is-layout-flex.wp-block-buttons-is-layout-flex {
  width: auto;
  padding: 20px 0 35px 0;
}

/* ========== MEDIA TEXT ========== */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    padding-top: 16px;
}

.wp-block-media-text img {
    width: 100%;
    object-fit: cover;
    height: auto;
}

/* Figure */
figure{
    line-height: 0;
}
/* Single Image Large / full */

figure.wp-block-image.size-full + figure.wp-block-image.size-full, 
figure.wp-block-image.size-full + figure.wp-block-image.size-large,
figure.wp-block-image.size-large + figure.wp-block-image.size-large,
figure.wp-block-image.size-large + figure.wp-block-image.size-full,
figure.wp-block-gallery + figure.wp-block-image.size-large,
figure.wp-block-gallery + figure.wp-block-gallery,
.wp-block-image + .wp-block-image,
.wp-block-image + figure.wp-block-image,
.wp-block-media-text + .wp-block-image {
    margin-top: 1rem;
}
figure.wp-block-image.size-full + figure.wp-block-gallery, figure.wp-block-image.size-large + figure.wp-block-gallery {
    margin-top: 1rem;
}
.wp-block-image.size-full img, .wp-block-image.size-large img{
    width: 100%;
    max-width: 100%;
    height: auto;
}
figure.wp-block-gallery + figure.wp-block-image.size-full{
    margin-top: 1rem;
}
/* Single Image Resized */
.wp-block-image.is-resized {
    justify-content: flex-start;
}
.wp-block-image.is-resized img{
    height: auto;
    max-width: 100%;
}
.wp-block-image .is-resized img{
    height: auto;
    max-width: 100%;
}
 figure.aligncenter {
    display: flex;
    justify-content: center !important;
}
 figure.alignleft {
    display: flex;
    justify-content: flex-start !important;
}
figure.alignright {
    display: flex;
    justify-content: flex-end !important;
}
/* ========== RESPONSIVE ========== */
@media screen and (max-width: 700px) {
    .wp-block-gallery {
        -webkit-column-count: 1;
        column-count: 1; 
    }

    .wp-block-media-text {
      grid-template-columns: 1fr;
      gap: 0;
      padding-top: 10px;
    }

    .wp-block-media-text img {
        height: auto;
    }

    summary::after {
        font-size: 24px;
    }
}
