figcaption {
    position: absolute;
    scale: 0;
}

.section--title {
    padding: 1em;
    display: flex;
}

.section--title > article {
    width: 100%;
    max-width: 100%;
    padding: 2em 0;
    background: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: 1em;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2em;
}

@media only screen and (max-width: 800px) {
    .section--title > article {
        box-shadow: unset;
        padding: 1em 1em 0 1em;
        grid-template-columns: 1fr;
    }
}

.section--title > article > figure {
    min-height: 100%;
    max-height: 100%;
    aspect-ratio: 1/1;
    padding: 1em;
    display: flex;
    border-radius: 0 5em 5em 0;
    background: var(--background-color);
}

.section--title > article > figure > :nth-child(1) {
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 1ch 5em 5em 1ch;
    box-shadow: var(--box-shadow);
    z-index: 1;
}

@media only screen and (max-width: 800px) {
    .section--title > article > figure > :nth-child(1) {
        aspect-ratio: 2/1;
        border-radius: 5em 5em 1ch 1ch;
        box-shadow: unset;
    }
}

.section--title > article > figure > :nth-child(2) {
    min-width: 20%;
    max-width: 20%;
    aspect-ratio: 1/1;
    position: absolute;
    inset: 0;
    margin: auto -10% 0 auto;
    padding: 1ch;
    background: var(--background-color);
    border: 1mm solid var(--white-color);
    border-radius: 50%;
    z-index: 2;
}

@media only screen and (max-width: 800px) {
    .section--title > article > figure > :nth-child(2) {
        margin: -10% auto auto auto;
    }
}

@media only screen and (max-width: 800px) {
    .section--title > article > figure {
        aspect-ratio: 2/1;
        border-radius: 5em 5em 0 0;
    }
}

.section--title > article > div {
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1em 2em;
}

.section--title > article > div > h1 {
    margin: auto 0;
    font-size: 3em;
    padding: 1ch;
    color: var(--one-color);
    border-bottom: .1em solid var(--two-color);
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 2em;
}

.section--title > article > div > h1::before {
    margin: auto 0;
    content: var(--before--content--value);
}

@media only screen and (max-width: 800px) {
    .section--title > article > div > h1 {
        font-size: 2em;
    }
}

.section--title > article > div > p {
    font-size: 1.2em;
}

@media only screen and (max-width: 800px) {
    .section--title > article > div {
        padding: 1em;
    }
}

.section--summary {
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: right;
    flex-wrap: wrap;
    gap: 2em;
}

.section--summary > a {
    min-width: fit-content;
    max-width: 100%;
    margin: auto 0;
    padding-left: 1em;
    background: var(--one-color);
    border: 1mm solid var(--one-color);
    box-shadow: var(--box-shadow);
    border-radius: 1ch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
}

.section--summary > a > svg {
    min-width: 3em;
    max-width: 3em;
    aspect-ratio: 1/1;
    margin: auto 0;
    padding: 1mm;
    border-radius: 1mm;
    background: var(--white-color);
    fill: var(--one-color);
}

.section--summary > a > span {
    margin: auto 0;
    color: var(--white-color);
}

.section--article {
    padding: 1em;
    display: flex;
}

.section--article > article {
    min-width: 100%;
    max-width: 100%;
    padding: 1em;
    background: var(--white-color);
    border-radius: 1em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

.section--article > article > :first-child {
    font-weight: unset;
    padding: 1ch 0;
    color: var(--one-color);
    font-size: 1.2em;
    letter-spacing: 1mm;
}

.section--article > article p::before {
    display: none;
}

.section--article > article > p {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--two-color);
}

.section--article > article > h2 {
    width: fit-content;
    max-width: 100%;
    margin: auto 0;
    padding-bottom: 1ch;
    text-align: justify;
    line-height: 2em;
    letter-spacing: unset;
    border-bottom: 1mm solid var(--two-color);
    color: var(--two-color);
    font-size: 2em;
}

.section--article > article > div {
    min-width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2em;
}

@media only screen and (max-width: 800px) {
    .section--article > article > div {
        grid-template-columns: 1fr;
    }
}

.section--article > article > div > figure {
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    background: var(--background-color);
    padding: 1em;
    display: flex;
    position: relative;
}

.section--article > article > div > figure > img {
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1em;
    box-shadow: var(--box-shadow);
    z-index: 1;
}

/* Star icon - positioned at top-right corner */
.section--article > article > div > figure::after {
    min-width: 2em;
    max-width: 2em;
    aspect-ratio: 1/1;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    content: var(--before--content--value);
    background: var(--background-color);
    border-radius: 50%;
    color: var(--one-color);
    scale: 2;
    z-index: 2;
    pointer-events: none;
}

/* For odd children (image on left side) - star on top-left corner */
.section--article > article > div:nth-child(odd) > figure::after {
    top: 10px;
    left: 10px;
    right: auto;
}

/* For even children (image on right side) - star on top-right corner */
.section--article > article > div:nth-child(even) > figure::after {
    top: 10px;
    right: 10px;
    left: auto;
}

@media only screen and (max-width: 800px) {
    .section--article > article > div > figure {
        aspect-ratio: 16/9;
        border-radius: 2em;
    }
    
    /* Mobile star icon - smaller and at corner */
    .section--article > article > div > figure::after {
        scale: 1;
        min-width: 1.5em;
        max-width: 1.5em;
        top: 5px;
        right: 5px;
    }
    
    .section--article > article > div:nth-child(odd) > figure::after {
        top: 5px;
        left: 5px;
        right: auto;
    }
    
    .section--article > article > div:nth-child(even) > figure::after {
        top: 5px;
        right: 5px;
        left: auto;
    }
}

/* iPhone/iOS Specific Fixes - Strong overrides for transforms */
@media only screen and (max-width: 800px) {
    /* Force all article divs to stack vertically */
    .section--article > article > div {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 1em !important;
    }
    
    /* Remove RTL/LTR and transforms completely */
    .section--article > article > div:nth-child(even),
    .section--article > article > div:nth-child(odd) {
        direction: ltr !important;
        padding: 0 !important;
    }
    
    /* Force images to stay inside their containers */
    .section--article > article > div > figure {
        transform: none !important;
        translate: 0 !important;
        margin: 0 auto !important;
        width: 90% !important;
        border-radius: 1em !important;
        overflow: hidden !important;
    }
    
    /* Fix for even/odd specific figure transforms */
    .section--article > article > div:nth-child(even) > figure,
    .section--article > article > div:nth-child(odd) > figure {
        transform: none !important;
        translate: 0 !important;
        border-radius: 1em !important;
        margin: 0 auto !important;
        width: 90% !important;
    }
    
    /* Content area */
    .section--article > article > div > div {
        width: 100% !important;
        padding: 0 0.5em !important;
    }
    
    /* Headings and text */
    .section--article > article > div > div > h2 {
        font-size: 1.3em !important;
        text-align: center !important;
    }
    
    .section--article > article > div > div > p {
        font-size: 0.95em !important;
        text-align: justify !important;
        padding: 0 0.5em !important;
    }
}

/* Prevent any overflow on mobile */
@media only screen and (max-width: 800px) {
    .section--article {
        overflow-x: hidden !important;
        padding: 0.5em !important;
    }
    
    .section--article > article {
        overflow-x: hidden !important;
        padding: 0.5em !important;
    }
    
    .section--article > article > div > figure > img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
}
