/* Opacity Animation  */
.upcomingExhibitions .ListTitleRow,
.upcomingExhibitions .titleRow,
.currentExhibitionSection .titleRow,
.currentExhibitionSection .bottomRow,
.selectedWorksSectionWrapper,
.currentExhibitionSection .ListTitleRow {
    opacity: 0;
    will-change: opacity;
}

/* Transform and Opacity Animation  */
.heroSection .mobileRightRow,
.heroSection .heroTitle,
.heroSection .upTitle,
.videoSection video {
    opacity: 0;
    transform: translateY(100px);
    will-change: transform, opacity;
}

.heroSection {
    padding: 80px 0 0;
}

.heroImagesBox {
    transition: transform 0.2s ease-in-out;
}

.heroSection .heroWrapper {
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 80px;
    height: 1172px;
    justify-content: flex-start;
    max-width: 1920px;
    padding: 48px 0 0;
    position: relative;
    width: 100%;
}

.heroSection .titleBox {
    margin: 0 auto;
    width: 80%;
}

.heroSection .upTitle {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
}

.heroSection .line {
    width: 64px;
    height: 2px;
    background-color: #000;
}

.heroSection .upTitle,
.heroSection .mobileRightRow,
.heroSection .heroTitle {
    transform: translateY(200px);
}

.heroSection .heroTitle .heroTopTitle {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.heroSection .heroBottomTitle,
.heroSection .heroTitle .heroTopTitle .leftRow {
    font-family: "Helvetica", sans-serif;
    font-size: 90px;
    font-weight: 400;
    line-height: 100px;
    color: #000;
    display: flex;
    gap: 28px;
}

.heroSection .heroTitle .heroTopTitle .leftRow b {
    font-weight: 700;
}

.heroSection .mobileRightRow,
.heroSection .rightRow {
    font-family: "Inter", sans-serif;
    max-width: 300px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #222;
    opacity: 0.5;
    text-align: end;
}

.heroSection .mobileRightRow {
    display: none;
}

.heroSection .heroBottomTitle {
    justify-content: end;
}


.heroSection .heroImagesBox img {
    height: 100%;
    max-width: 570px;
    width: 100%;
    object-fit: cover;
}

.heroSection .heroImagesBox {
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    height: 53%;
    justify-content: center;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
}

.heroSection .heroImagesBox div {
    flex: none;
    height: 580px;
    position: absolute;
    width: 434px;
    z-index: 1;
}

.heroSection .heroImagesBox .left {
    left: calc(25.223880597014947% - 434px / 2);
    top: calc(67.485549132948% - 580px / 2);
    transform: rotate(-15deg);
}

.heroSection .heroImagesBox .center {
    left: calc(50.00000000000002% - 434px / 2);
    top: calc(50.00000000000002% - 580px / 2);
    z-index: 2;
}

.heroSection .heroImagesBox .right {
    left: calc(75.14925373134331% - 434px / 2);
    top: calc(67.485549132948% - 580px / 2);
    transform: rotate(15deg);
}


.home-about {
    margin-top: 100px;
    margin-bottom: 100px;
}

.about-right-item {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #000;
    margin-left: 80px;
    margin-bottom: 10px;
}

.about-left {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #222;
    font-weight: 700;
}

.about-description {
    font-family: "Inter", sans-serif;
    line-height: 24px;
    font-size: 16px;
    color: #858585;
    margin-bottom: 80px;
}

.about-right-item h3 {
    font-family: "Inter", sans-serif;
    line-height: 24px;
    font-size: 16px;
    color: #222;
}

/*  */

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 20px;
    height: 600px;
    margin-top: 80px;
}

.gallery-grid .left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 600px;
}

.top-right,
.bottom-right {
    grid-column: 2 / 3;
    height: 290px;
}

.top-right {
    margin-bottom: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Initially: */
.gallery-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* d-none is hidden initially */
.d-none {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.top-artists {
    padding: 50px;
    background-color: #222222;
}

.top-artists-top-row h2 {
    font-size: 72px;
    font-weight: 400;
    color: #fcfcfc;
}

.top-artists-top-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.top-artists-title {
    width: 800px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.top-artists-title h2 {
    width: 100%;
}

.top-artists-title h2 b {
    display: block;
    width: 100%;
    text-align: right;
    font-weight: 700 !important;
}

.top-artists-top-row a {
    font-size: 16px;
    color: #fcfcfc;
    text-decoration: none;
    border-bottom: 1px solid #fcfcfc;
    font-weight: 600;
}

.top-artists-top-row a img {
    width: 0px;
    transition: width 0.5s;
}

.top-artists-top-row a:hover img {
    width: 20px;
}

.currentExhibitionSection {
    padding-bottom: 150px;
}

.currentExhibitionSection .titleRow .upTitle {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #222;
    margin-bottom: 16px;
}

.currentExhibitionSection .titleRow .title {
    font-family: "Helvetica", sans-serif;
    font-size: 72px;
    line-height: 80px;
    font-weight: 400;
    color: #222;
    margin: 0;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.currentExhibitionSection .titleRow b {
    font-weight: 600;
}

.currentExhibitionSection .bottomRow {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.currentExhibitionSection .rightCol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: end;
    max-width: 610px;
}

.currentExhibitionSection .rightCol .shortDescription {
    font-family: "Inter", sans-serif;
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.currentExhibitionSection .rightCol .description {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #858585;
    text-align: end;
}

.videoSection {
    padding-bottom: 150px;
}

.videoSection video {
    max-height: 800px
}

.upcomingExhibitions {
    padding-bottom: 80px;
}

.upcomingExhibitions .titleRow {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 64px;
}

.upcomingExhibitions .titleRow h2 {
    font-family: "Helvetica", sans-serif;
    font-size: 80px;
    line-height: 85px;
    color: #fcfcfc;
    font-weight: 500;
    margin: 0;
}

.upcomingExhibitions .titleRow h2.bold {
    font-weight: 600;
}

.upcomingExhibitions .ListTitleRow {
    display: flex;
    align-items: center;
    gap: 40px;
}

.upcomingExhibitions .ListTitleRow .mobileTitleBox {
    display: none;
}

.upcomingExhibitions .ListTitleRow .mobileTitleBox,
.upcomingExhibitions .ListTitleRow .titleBox {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #fcfcfc;
    text-transform: uppercase;
}

.upcomingExhibitions .ListTitleRow .titleBox:first-child {
    width: 220px;

}

.upcomingExhibitions .ListTitleRow .titleBox:nth-child(2) {
    width: 356px;
}

.upcomingExhibitions .ListTitleRow .titleBox:nth-child(3) {
    width: 400px;
}

.upcomingExhibitions .listContentBox {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.upcomingExhibitions .listContentBox .contentRow {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    opacity: 0;
    position: relative;
    transform: translateY(30px);
    will-change: transform, opacity, box-shadow;
    box-shadow: inset 0 1px 0 0 #fff;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.upcomingExhibitions .listContentBox .contentRow:hover {
    box-shadow: inset 0 8px 0 0 #fff;
    opacity: 1;
    transform: translateY(0);
}


.upcomingExhibitions .listContentBox .contentRow .dateBox {
    font-family: "Helvetica", sans-serif;
    font-size: 32px;
    line-height: 40px;
    color: #858585;
    width: 220px;
    text-transform: uppercase;
}

.upcomingExhibitions .listContentBox .contentRow .exhibitorBox {
    font-size: 32px;
    line-height: 40px;
    color: #858585;
    width: 356px;
}

.upcomingExhibitions .listContentBox .contentRow .titleBox {
    font-size: 32px;
    line-height: 40px;
    color: #858585;
    width: 400px;
}

.upcomingExhibitions .listContentBox .contentRow:hover .dateBox {
    color: #fff;
}

.upcomingExhibitions .listContentBox .contentRow:hover .exhibitorBox {
    color: #fff;
}

.upcomingExhibitions .listContentBox .contentRow .rightAbsoluteImage {
    position: absolute;
    right: 24px;
    top: -50px;
    width: 230px;
    height: 298px;
    object-fit: cover;
    display: none;
    z-index: 2;
}

.upcomingExhibitions .listContentBox .contentRow:hover .rightAbsoluteImage {
    display: block;
}

.worksSliderSection {
    position: relative;
    padding-top: 150px;
    padding-bottom: 64px;
    overflow: hidden;
}

.sliderRowWrapper {
    overflow: hidden;
    width: 100%;
    padding-top: 50px 0;
    opacity: 0;
    transform: translateY(100px);
}

.worksSliderSection .sliderRow {
    display: flex;
    gap: 20px;
}

.worksSliderSection .card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 0;
}

.worksSliderSection .card.reverseCol {
    flex-direction: column-reverse;
}

.worksSliderSection .card .titleRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #222;
    text-transform: uppercase;
}

.worksSliderSection .card .titleRow .dark {
    color: #888;
}

.worksSliderSection .card .video,
.worksSliderSection .card .imageBox img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}


.selectedWorksSection {
    padding-bottom: 150px;
}

.selectedWorksSectionWrapper {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: end;
}

.selectedWorksSectionWrapper .titleBox {
    width: min-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 660px;
    width: 100%;
}

.selectedWorksSectionWrapper .titleBox .left {
    font-family: "Helvetica", sans-serif;
    font-size: 72px;
    line-height: 80px;
    font-weight: 400;
    color: #222;
    margin: 0;
    padding-right: 155px;
}

.selectedWorksSectionWrapper .titleBox .right {
    font-family: "Helvetica", sans-serif;
    font-size: 72px;
    line-height: 80px;
    font-weight: 600;
    color: #222;
    margin: 0;
    text-align: end;
}

.selectedWorksSectionWrapper .descriptionBox {
    max-width: 1087px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #858585;
}

@media only screen and (max-width: 1200px) {

    .heroSection .heroBottomTitle,
    .heroSection .heroTitle .heroTopTitle .leftRow {
        font-size: 72px;
        line-height: 80px;
    }

    .heroSection .titleBox {
        width: 100%;
    }

    .about-right-item {
        margin-left: 0;
    }


    .about-description {
        margin-bottom: 40px;
    }

    .gallery-grid .top-right,
    .gallery-grid .bottom-right {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .home-about {
        margin-bottom: 60px;
        margin-top: 0px;
    }

    .currentExhibitionSection .titleRow .title {
        font-size: 45px;
        line-height: 50px;
        margin-bottom: 32px;
    }

    .currentExhibitionSection .bottomRow {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .currentExhibitionSection {
        padding-bottom: 60px;
    }

    .videoSection {
        padding-bottom: 30px;
        height: 400px !important;
    }

    .videoSection .container {
        height: 100%;
    }


    .videoSection video {
        width: 90% !important;
        margin: 0 auto;
    }

    .upcomingExhibitions .titleRow {
        flex-direction: column;
        gap: 0;
        margin-bottom: 30px;
        padding-inline: 20px;
    }

    .upcomingExhibitions .titleRow h2 {
        font-size: 45px;
        line-height: 50px;
    }

    .upcomingExhibitions .ListTitleRow {
        padding-inline: 20px;
    }

    .upcomingExhibitions .listContentBox {
        padding-inline: 20px;
    }

    .upcomingExhibitions .ListTitleRow .titleBox {
        display: none;
    }

    .upcomingExhibitions .ListTitleRow .mobileTitleBox {
        display: block;
    }

    .upcomingExhibitions .listContentBox .contentRow {
        flex-direction: column;
        gap: 30px;
    }

    .upcomingExhibitions .listContentBox .contentRow .exhibitorBox,
    .upcomingExhibitions .listContentBox .contentRow .titleBox,
    .upcomingExhibitions .listContentBox .contentRow .dateBox {
        font-size: 20px;
        line-height: 28px;
        width: 100%;
    }

    .upcomingExhibitions .listContentBox .contentRow .rightAbsoluteImage {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }

    .worksSliderSection {
        padding-block: 60px;
    }

    .selectedWorksSectionWrapper {
        flex-direction: column;
        gap: 40px;
    }

    .selectedWorksSectionWrapper .titleBox .right,
    .selectedWorksSectionWrapper .titleBox .left {
        font-size: 45px;
        line-height: 50px;
        padding: 0;
    }

    .selectedWorksSection {
        padding-bottom: 60px;
    }
}

@media only screen and (max-width: 1020px) {
    .heroSection .heroImagesBox div {
        flex: none;
        aspect-ratio: .7467532467532467 / 1;
        height: 241px;
        position: absolute;
        width: 180px;
        z-index: 1;
    }


    .heroSection .rightRow {
        display: none;
    }

    .heroSection .mobileRightRow {
        display: block;
        text-align: left;
        max-width: 100%;
    }

    .heroSection .heroBottomTitle,
    .heroSection .heroTitle .heroTopTitle .leftRow {
        justify-content: start;
        font-size: 58px;
        line-height: 70px;
    }

    .heroSection .heroTitle .heroTopTitle .leftRow {
        flex-direction: column;
        gap: 0;
    }

    .heroSection .heroImagesBox .left {
        left: 10px;
        top: unset;
    }

    .heroSection .heroImagesBox .center {
        left: calc(50.00000000000002% - 180px / 2);
        top: 0;
    }

    .heroSection .heroImagesBox .right {
        left: unset;
        right: 10px;
        top: unset;
    }

    .heroSection .heroImagesBox {
        height: 362px;
    }

    .heroSection .heroWrapper {
        height: 782px;
        gap: 40px;
    }
}