.wp-block-amphibee-image-and-dropdown:not(.alignwide) .image-and-dropdown-wrapper {
    max-width: var(--gbg-wide-width) !important;
    margin: auto;
}

.wp-block-amphibee-image-and-dropdown {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-amphibee-image-and-dropdown:not(.alignwide).wp-block,
.editor-styles-wrapper .wp-block-amphibee-image-and-dropdown .image-and-dropdown-dropdowns .wp-block {
    max-width: inherit;
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-wrapper {
    padding: 48px 32px;
}

/* Background support */
.wp-block-amphibee-image-and-dropdown.background-light {
    background-color: var(--gbg-color-light);
}

.wp-block-amphibee-image-and-dropdown.background-secondary {
    background-color: var(--gbg-color-secondary);
}

.wp-block-amphibee-image-and-dropdown.background-secondary .image-and-dropdown-title > *,
.wp-block-amphibee-image-and-dropdown.background-secondary .image-and-dropdown-paragraph > *,
.wp-block-amphibee-image-and-dropdown.background-secondary .dropdown-item-question > *,
.wp-block-amphibee-image-and-dropdown.background-secondary .dropdown-item-answer > * {
    color: var(--gbg-color-light) !important;
}

.wp-block-amphibee-image-and-dropdown.background-secondary .image-and-dropdown-subtitle > * {
    color: var(--gbg-color-light-citron);
}
.wp-block-amphibee-image-and-dropdown.background-secondary ul li:before {
    background-color: var(--gbg-color-light-citron);
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media screen and (min-height: 998px) {
    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-content {
        gap: 64px;
    }
}

section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-subtitle > *,
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-title > *,
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph > * {
    margin: 0;
    color: var(--gbg-color-primary);
    line-height: 1 !important;
    letter-spacing: 0;
}

section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-subtitle > * {
    font-size: clamp(18px, 4vw, 20px) !important;
    font-weight: 400;
    margin-bottom: 8px;
}

@media screen and (min-width: 998px) {
    section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-subtitle > * {
        margin-bottom: 24px;
    }
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-title > * {
    color: var(--gbg-color-primary);
    font-size: clamp(32px, 4vw, 48px) !important;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

/* Paragraph styles */
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph > * {
    font-size: clamp(16px, 4vw, 20px) !important;
    font-weight: 400;
    line-height: 1.5 !important;
    margin-top: 16px;
}

/* Hide paragraph when data-visible is false */
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph:empty,
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph[data-visible="false"],
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph[data-visible=""],
section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph[data-visible="0"] {
    display: none !important;
}

@media screen and (min-width: 998px) {
    section.wp-block-amphibee-image-and-dropdown .image-and-dropdown-paragraph > * {
        margin-top: 24px;
    }
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-flex-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-image {
    width: 100%;
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--gbg-border-radius-xl);
}

.wp-block-amphibee-image-and-dropdown:not(.is-style-LittlePicture) .image-and-dropdown-image img {
    aspect-ratio: 1/1;
}

@media screen and (min-width: 998px) {
    .wp-block-amphibee-image-and-dropdown:not(.is-style-LittlePicture) .image-and-dropdown-image img {
        aspect-ratio: 3/4;
    }
}

.editor-styles-wrapper .wp-block-amphibee-image-and-dropdown .image-and-dropdown-dropdowns > .block-editor-inner-blocks > .block-editor-block-list__layout,
.wp-block-amphibee-image-and-dropdown .image-and-dropdown-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wp-block-amphibee-image-and-dropdown .image-and-dropdown-image[data-invisible="1"],
.wp-block-amphibee-image-and-dropdown .image-and-dropdown-image[data-invisible="true"] {
    display: none;
}

/* Desktop styles */
@media screen and (min-width: 998px) {
    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-wrapper {
        padding: 80px 0;
    }

    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-flex-container {
        flex-direction: row;
        gap: clamp(80px, 8vw, 128px);
        align-items: center;
    }

    /* Reversed layout */
    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-wrapper.reversed .image-and-dropdown-flex-container {
        flex-direction: row-reverse;
    }

    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-image {
        flex: 0 0 35%;
    }

    .editor-styles-wrapper .wp-block-amphibee-image-and-dropdown .image-and-dropdown-dropdowns > .block-editor-inner-blocks > .block-editor-block-list__layout,
    .wp-block-amphibee-image-and-dropdown .image-and-dropdown-dropdowns {
        gap: 24px;
        flex: 1;
    }
}
