/* ========================================
   COMPONENTS
   Styling for reusable page elements
======================================== */


/* ----------------------------------------
   HEADER
---------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    padding: 1.1vh 1.1vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.1vw;
}

.header img {
    display: block;
    max-height: 45px;
    width: auto;
}

.header > a {
    margin-right: auto;
}

.language-select {
    font-size: 1em;
    padding: 1.1vh;
    border-radius: 0.5vh;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.dark-mode-toggle {
    font-size: 1.8em;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 1.1vh;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.header .dark-mode-toggle { 
    margin-right: 55px; 
}

/* ----------------------------------------
   HERO
---------------------------------------- */

.hangs {
    width: 100%;
    height: 44.2vh;
    background-image: url(../Images/BG1.png);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-size: 2em;
    font-weight: bold;
}


/* ----------------------------------------
   CONTENT SECTIONS & BOXES
---------------------------------------- */

.bento {
    background-color: #CCD5AE;
    display: flex;
    justify-content: space-between;
    gap: 1.1vw;
    padding: 1.1vh;
    box-sizing: border-box;
}

.box {
    background-color: #FAEDCD;
    padding: 3.5vh;
    height: 47vh;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    box-sizing: border-box;
}

.box1 {
    flex: 2;
    display: flex;
    gap: 1.3vw;
}

.box1 img {
    height: auto;
    border-radius: 10px;
}

.box1 p {
    max-height: 15.5vh;
    overflow: auto;
}

.box2 {
    flex: 1;
}

.box2 img {
    width: 70%;
    max-width: 24vw;
    height: auto;
    border-radius: 10px;
}

.box3 {
    height: 66.3vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.3vw;
}

.box3 img,
.box4 img {
    align-content: center;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.box4 {
    height: 66.3vh;
    flex: 1;
}


/* ----------------------------------------
   BOOK INFORMATION
---------------------------------------- */

.informations {
    display: flex;
    flex-direction: column;
}

.buy {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.1vh;
    margin-top: 1.1vw;
}


.book-presentation .box4 {
    height: auto;
    min-height: 0;
}

.book-presentation .box4 .book-presentation-poster {
    display: block;
    width: 500px !important;
    max-width: 90% !important;
    height: auto !important;
    max-height: none !important;
    margin: 20px auto;
    object-fit: contain;
}





/* ----------------------------------------
   BUTTONS
---------------------------------------- */

.btn {
    background-color: #D4A373;
    color: white;
    border: none;
    padding: 1.1vh 1.1vw;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    flex: 1;
}

.btn:nth-child(1),
.btn:nth-child(2) {
    flex: 1 1 30%;
}

.full-width {
    flex: 1 1 100%;
}

.btn:hover {
    background-color: #bc8b5e;
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* ----------------------------------------
   BUY BUTTON GRID
---------------------------------------- */

.btn-buy {
    margin: 8px;
    padding: 1.1vh 1.1vw;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.btn-buy:hover {
    background-color: #e0e0e0;
}

.buy-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
    height: 24vh;
}

.buy-buttons-grid .btn-buy {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #D4A373;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.buy-buttons-grid .btn-buy:hover {
    background-color: #bc8b5e;
    transform: scale(1.03);
}


/* ----------------------------------------
   GALLERY
---------------------------------------- */

.gallery {
    background-color: #CCD5AE;
    display: flex;
    gap: 1.1vw;
    height: 39vh;
    justify-content: center;
    text-align: center;
    overflow-x: auto;
}

.gallery img {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 1.6vh;
    margin-top: 3.2vh;
    height: 75%;
}

.gallery img:hover {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.gallery::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}


/* ----------------------------------------
   LIGHTBOX
---------------------------------------- */

#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#caption {
    color: white;
    margin-top: 15px;
    font-size: 18px;
    font-style: italic;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    background: none;
    border: none;
}

#prev,
#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
    user-select: none;
}

#prev {
    left: 30px;
}

#next {
    right: 30px;
}

#prev:hover,
#next:hover,
#close:hover {
    color: #ccc;
}


/* ----------------------------------------
   INTERVIEWS & MEDIA
---------------------------------------- */

.circle-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.circle-wrapper {
    position: relative;
    width: 8.4vw;
    height: 8.4vw;
    transition: transform 0.6s ease;
}

.circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: filter 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.circle:hover img {
    filter: brightness(70%);
}

.player-bar {
    display: none;
    position: absolute;
    top: 50%;
    left: 180px;
    transform: translateY(-50%);
    padding: 10px 20px;
    border-radius: 20px;
    align-items: center;
    gap: 20px;
}

.play-button {
    font-size: 1.5em;
    background: #FAEDCD;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: scale(1.03);
}

.circle-wrapper.active {
    transform: translateX(-300px);
}

.circle-wrapper.active .player-bar {
    display: flex;
}


/* ----------------------------------------
   SIDE MENU
---------------------------------------- */

.burger-button { 
    position: fixed; 
    top: 15px; 
    right: 20px; 
    font-size: 30px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    z-index: 1100; 
    color: black; 
}

.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1050;
    padding: 20px;
}

.side-menu.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8em;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    gap: 15px;
}

.menu-links a {
    position: relative;
    display: inline-block;
    font-size: 1.8em;
    color: black;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu-links a:hover::after {
    transform: scaleX(1);
}


/* ----------------------------------------
   FORM HELPERS
---------------------------------------- */

input[name="website"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}


/* ========================================
   HOME PAGE
   Specific layout for the English homepage
======================================== */


/* ----------------------------------------
   HOME SECTION HEADINGS
---------------------------------------- */

.home-page .home-section {
    background-color: #CCD5AE;
    padding-top: 1px;
}

.home-page .home-section > h2,
.home-page .home-section-title {
    text-align: center;
    margin: 0;
    padding: 4vh 0 2.5vh;
    background-color: #CCD5AE;
}


/* ----------------------------------------
   BOOKS
---------------------------------------- */

.home-page #livre .bento {
    align-items: stretch;
}

.home-page #livre .box {
    height: auto;
    min-height: 42vh;
    display: flex;
    align-items: center;
}

.home-page #livre .box1 {
    flex: 1;
    min-width: 0;
}

.home-page #livre .box1 img {
    width: 38%;
    max-width: 230px;
    max-height: 34vh;
    object-fit: contain;
    flex-shrink: 0;
}

.home-page #livre .informations {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.home-page #livre .informations h1 {
    margin-top: 0;
}

.home-page #livre .informations p {
    max-height: none;
    overflow: visible;
    font-size: 0.8em;
    font-weight: normal;
    line-height: 1.5;
}

.home-page #livre .btn {
    flex: none;
    display: inline-block;
    margin-top: auto;
}


/* ----------------------------------------
   ABOUT
---------------------------------------- */

.home-page #auteur {
    align-items: stretch;
}

.home-page #auteur .box {
    height: auto;
    min-height: 55vh;
}

.home-page #auteur .box2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-page #auteur .box2 img:first-of-type {
    width: 70px;
    max-width: none;
}

.home-page #auteur .box2 img:last-of-type {
    width: 100%;
    max-width: 38vw;
    height: auto;
}

.home-page #auteur .box2 img {
    max-height: 60vh;
    object-fit: contain;
}

.home-page #auteur .box4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-page #auteur .box4 > img {
    width: 100px;
    height: auto;
}

.home-page #auteur .box4 p {
    max-width: 700px;
    line-height: 1.6;
    font-weight: normal;
}


/* ----------------------------------------
   GALLERY
---------------------------------------- */

.home-page .gallery-title {
    padding-top: 4vh;
    padding-bottom: 2.5vh;
}


/* ----------------------------------------
   CONTACT
---------------------------------------- */

.home-page #contact {
    align-items: stretch;
}

.home-page #contact .box {
    height: auto;
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-page #contact form {
    width: min(700px, 90%);
}

.home-page #contact input,
.home-page #contact textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.home-page #contact textarea {
    resize: vertical;
}

.home-page #contact .btn {
    width: 100%;
    flex: none;
}

.home-page #contact > .box > a {
    display: block;
}


/* ----------------------------------------
   HOME PAGE SPACING
---------------------------------------- */

.home-page .hangs {
    margin-bottom: 0;
}

.home-page #livre,
.home-page #auteur,
.home-page .gallery,
.home-page #contact {
    position: relative;
}



    
/* ========================================
   MOBILE HOME PAGE
======================================== */

@media (max-width: 700px) {

    /* HEADER */
    .header {
        padding: 8px 12px;
    }

    .header img {
        max-height: 32px;
    }

    .language-select {
        font-size: .8em;
        padding: 5px;
    }

    .header .dark-mode-toggle {
        margin-right: 42px;
        font-size: 1.4em;
        padding: 5px;
    }

    .burger-button {
        top: 9px;
        right: 8px;
        font-size: 26px;
    }


    /* HERO */
    .home-page .hangs {
        height: 35vh;
        min-height: 240px;
        padding: 0 20px;
        box-sizing: border-box;
        font-size: 1.4em;
    }


    /* HEADINGS */
    .home-page .home-section > h2,
    .home-page .home-section-title {
        font-size: 1.5em;
        padding: 25px 15px 15px;
    }


    /* BOOKS */
    .home-page #livre .bento,
    .home-page #auteur .bento{
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
        box-sizing: border-box;
    }

    .home-page #livre .box,
    .home-page #auteur .box {
        width: 100%;
        flex: none;
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 20px 18px;
        box-sizing: border-box;
    }

    .home-page #livre .box1 {
        flex-direction: column;
    }

    .home-page #livre .box1 img {
        width: 45%;
        max-width: 150px;
        max-height: 25vh;
        margin: 0 auto 15px;
    }

    .home-page #livre .informations {
        width: 100%;
        text-align: center;
    }

    .home-page #livre .informations h1,
    .home-page #auteur .box4 h1 {
        font-size: 1.35em;
    }

    .home-page #livre .informations p {
        font-size: .72em;
        line-height: 1.5;
        margin: 10px 0 15px;
    }

    .home-page #livre .btn,
    .home-page #contact .btn {
        width: 100%;
        font-size: .9em;
        padding: 10px;
        box-sizing: border-box;
    }


    /* ABOUT */
    .home-page #auteur .box2 img:first-of-type {
        width: 70px;
        max-width: none;
    }

    .home-page #auteur .box2 img:last-of-type {
        width: 90%;
        max-width: 500px;
        max-height: 50vh;
    }

    .home-page #auteur .box4 p {
        font-size: .8em;
        line-height: 1.55;
        margin: 10px 0;
    }


    /* GALLERY */
    .home-page .gallery {
        height: auto;
        min-height: 0;
        padding: 10px;
        gap: 5px;
        justify-content: flex-start;
        overflow-x: auto;
        box-sizing: border-box;
    }

    .home-page .gallery img {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
        margin: 5px;
    }


    /* CONTACT */
    .home-page #contact {
        padding: 10px;
    }

    .home-page #contact .box {
        min-height: 0;
        height: auto;
        padding: 20px 18px;
    }

    .home-page #contact h1 {
        font-size: 1.35em;
    }

    .home-page #contact form {
        width: 100%;
    }

    .home-page #contact label {
        font-size: .85em;
    }

    .home-page #contact input,
    .home-page #contact textarea {
        font-size: .9em;
        padding: 9px;
    }

    .home-page #contact textarea {
        min-height: 100px;
    }

}



/* ========================================
   BOOK PAGE INTRO
======================================== */

.book-intro {
    justify-content: center;
    padding: 30px;
}

.book-intro .box1 {
    flex: 1;
    max-width: 1100px;
    min-width: 0;
    min-height: 480px;
    height: auto;
    padding: 40px;
    gap: 45px;
    align-items: center;
}

.book-intro .box1 > img {
    width: 35%;
    max-width: 300px;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.book-intro .informations {
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.book-intro .informations h1 {
    font-size: 2em;
    margin: 0 0 20px;
}

.book-intro .resume {
    max-width: 600px;
    font-size: 0.85em;
    font-weight: normal;
    line-height: 1.7;
}

.book-intro .resume p {
    max-height: none;
    overflow: visible;
    margin: 0 0 25px;
}

.book-intro .buy {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
}

.book-intro .buy .btn {
    flex: 1 1 40%;
    padding: 14px 18px;
    font-size: 0.8em;
    text-align: center;
    box-sizing: border-box;
}

/* MOBILE BOOK INTRO */

@media (max-width: 700px) {
    .book-intro {
        padding: 15px;
    }

    .book-intro .box1 {
        flex-direction: column;
        min-height: 0;
        padding: 25px 20px;
        gap: 20px;
    }

    .book-intro .box1 > img {
        width: 55%;
        max-width: 220px;
        max-height: 320px;
    }

    .book-intro .informations {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .book-intro .informations h1 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .book-intro .resume {
        font-size: 0.78em;
    }

    .book-intro .buy {
        flex-direction: column;
        gap: 10px;
    }

    .book-intro .buy .btn {
        flex: none;
        width: 100%;
        font-size: 0.85em;
    }
}



/* ========================================
   ABOUT THE BOOK
======================================== */

.bento:has(.box4 h1) {
    justify-content: center;
    padding: 30px;
}

.bento:has(.box4 h1) .box4 {
    max-width: 950px;
    height: auto;
    min-height: 0;
    padding: 55px 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento:has(.box4 h1) .box4 h1 {
    margin: 0 0 15px;
    font-size: 2.2em;
}

.bento:has(.box4 h1) .box4 img {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.bento:has(.box4 h1) .box4 p {
    max-width: 750px;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.9;
    font-weight: normal;
    text-align: center;
}

.bento:has(.box4 h1) .box4 em {
    font-weight: bold;
}


/* MOBILE */

@media (max-width: 700px) {
    .bento:has(.box4 h1) {
        padding: 15px;
    }

    .bento:has(.box4 h1) .box4 {
        padding: 35px 25px;
    }

    .bento:has(.box4 h1) .box4 h1 {
        font-size: 1.7em;
    }

    .bento:has(.box4 h1) .box4 img {
        width: 90px;
        margin-bottom: 20px;
    }

    .bento:has(.box4 h1) .box4 p {
        font-size: 0.82em;
        line-height: 1.75;
    }
}




/* ========================================
   READER REACTIONS
======================================== */

.bento:has(.box2 h1) {
    justify-content: center;
    padding: 30px;
}

.bento:has(.box2 h1) .box2 {
    max-width: 1000px;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento:has(.box2 h1) .box2 h1 {
    margin: 0 0 15px;
    font-size: 2.2em;
}

.bento:has(.box2 h1) .box2 > img {
    width: 120px;
    height: auto !important;
    margin-bottom: 20px;
}

.bento:has(.box2 h1) .box2 > p {
    margin: 0 0 35px;
    font-size: 0.9em;
    font-weight: normal;
}

.bento:has(.box2 h1) .box2 > a {
    width: 100%;
    max-width: 700px;
    margin: 10px 0;
    padding: 20px;
    background-color: #fffaf0;
    border-radius: 15px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento:has(.box2 h1) .box2 > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.bento:has(.box2 h1) .box2 > a img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}


/* MOBILE */

@media (max-width: 700px) {
    .bento:has(.box2 h1) { 
        padding: 10px 20px; 
    } 
    .bento:has(.box2 h1) .box2 { 
        padding: 25px 15px; 
    } 
    .bento:has(.box2 h1) .box2 h1 { 
        font-size: 1.4em; 
        margin-bottom: 8px; 
    } 
    .bento:has(.box2 h1) .box2 > p { 
        font-size: 0.7em; 
        margin-bottom: 15px; 
    } 
    .bento:has(.box2 h1) .box2 > a { 
        margin: 5px 0; 
        padding: 8px; 
    }
}




/* ========================================
   WHERE TO BUY
======================================== */

.buy-buttons-grid {
    width: 100%;
    max-width: 850px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bento .box1:has(.buy-buttons-grid) {
    max-width: 1000px;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 55px;
    align-items: center;
    justify-content: center;
}

.bento .box1:has(.buy-buttons-grid) h1 {
    margin: 0;
    font-size: 2.2em;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    padding: 15px 20px;
    box-sizing: border-box;

    background-color: #D4A373;
    color: white;
    text-decoration: none;

    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.btn-buy:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    background-color: #c58f62;
}


/* MOBILE */

@media (max-width: 700px) {

    .bento:has(.buy-buttons-grid) { 
        padding: 10px 8px; 
    } 
    .bento .box1:has(.buy-buttons-grid) { 
        width: 100%; 
        padding: 20px 12px; 
    } 
    .bento .box1:has(.buy-buttons-grid) h1 { 
        font-size: 1.4em; 
        margin-bottom: 10px; 
    } 
    .buy-buttons-grid { 
        width: 100%; 
        gap: 4px; 
    } 
    .btn-buy { 
        width: 100%; 
        min-height: 40px; 
        padding: 6px 8px; 
        font-size: 10px !important; 
    }
}



/* ========================================
   INTERVIEW & DEEPER DIVE
======================================== */

.bento:has(iframe) {
    gap: 20px;
}

.bento:has(iframe) .box4 {
    height: auto;
    min-height: 0;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bento:has(iframe) .box4 h1 {
    margin: 0 0 15px;
    font-size: 1.8em;
}

.bento:has(iframe) iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-top: 10px !important;
}

.bento:has(iframe) .circle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.bento:has(iframe) .circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento:has(iframe) .player-bar img {
    max-width: 100%;
    height: 5px !important;
}

.bento:has(iframe) .play-button {
    margin-top: 5px;
}



/* MOBILE */

@media (max-width: 700px) {

    .bento:has(iframe) {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .bento:has(iframe) .box4 {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: 25px 15px;
        box-sizing: border-box;
        overflow: visible;
    }

    .bento:has(iframe) .box4 h1 {
        font-size: 1.35em;
        text-align: center;
        margin: 0, 0 5px;
    }

    /* YouTube interview */

    .bento:has(iframe) iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-top: 5px !important;
    }

    /* To Dive Deeper */

    .bento:has(iframe) .circle-container {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        gap: 5px;
        margin-top: 0;
        padding-top: 0;
    }

    .bento:has(iframe) .circle-wrapper {
        width: 45%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 30px;
    }

    .bento:has(iframe) .circle {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .bento:has(iframe) .player-bar {
        width: 90px;
        max-width: 90px;
    }

    .bento:has(iframe) .player-bar img {
        width: 90px !important;
        max-width: 90px !important;
        height: 5px !important;
    }

    .bento:has(iframe) .play-button {
        width: 40px;
        height: 40px;
        margin-top: 5px;
    }

    .bento:has(iframe) .play-button img {
        width: 20% !important;
        max-width: none;
    }
}
