body {
    font-family: "Source Sans 3pro", sans-serif!important;
    font-size: 18px;
}

body.mfp-active-no-scroll {
    /* Prevent scrolling */
    overflow: hidden !important;
    width: 100%;
}

a:focus {
    box-shadow: none!important;;
}

main {
    min-height: calc(100vh - 112px);
}

.region-sidebar-first {
    min-width: 140px;
    max-width: 140px;
}
.content-container {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

@media only screen and (min-width: 992px) {
    .tabs-container {
        display: flex;
    }
}

.slp-sidebar {
    min-width: 260px;
}

.slp-sidebar > span {
    position: relative;
}

@media only screen and (min-width: 768px) {
    .slp-sidebar {
        max-width: 260px;
    }
}
@media only screen and (max-width: 767px) {
    .paragraph--type--title-with-description {
        flex-direction: column;
    }
    .mfp-arrow {
        display: none!important;
    }

    .tabs-container {
        margin-top: 50px;
    }

    p, .text-row, .field--name-field-title {
        font-size: 14px;
    }

    .page-work .tabs-container {
        margin-top: 0;
    }

    .page-work .node--type-page .node__content {
        display: flex;
        align-items: center;
        height: 85vh;
        justify-content: center;
    }
    .page-work .node--type-page .node__content img {
        /*margin-bottom: 70px;*/
    }

}

.slp-sidebar .links .active {
    position: relative;
    --tw-bg-opacity: 1;
    background-color: rgba(209,213,219,var(--tw-bg-opacity));
}

.item-click {
    cursor: pointer;
}

.paragraph--type--plan-item .block-content > * {
    margin: 20px 0;
}

.eratf-ajax-content {
    width: 100%;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
}

.buttons-container .button {
    margin: 0 10px;
    opacity: .5;
    cursor: pointer;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    padding: 10px;
    font-size: 20px;
}

.buttons-container .button:hover {
    opacity: 1;
}

#collapse-button {
    display: block;
    height: 20px;
    width: 20px;
    position: absolute;
    right: 7px;
    top: 2px;
    background-size: cover;
    cursor: pointer;
}

#collapse-button.collapse {
    background-image: url("../images/collapse.png");
}

#collapse-button.expand {
    background-image: url("../images/expand.png");
}

.tabs-container .collapse {
    display: initial;
}

@media only screen and (min-width: 993px) {
    .menus-wrapper {
        height: fit-content;
        width: fit-content;
    }
    .slp-sidebar {
        margin-right: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    #collapse-button,
    .slp-sidebar .buttons-container {
        display: none;
    }
}

.tabs-container .menus-wrapper .progressbar-item {
    margin-bottom: 5px;
}

@media only screen and (min-width: 768px) {
    .tabs-container .menus-wrapper.collapse {
        width: fit-content;
    }
}

@media only screen and (min-width: 1440px) {
    .tabs-container {
        gap: 100px;
    }
}

@media only screen and (max-width: 992px) {

    .tabs-container .menus-wrapper .slp-sidebar {
        z-index: 9999;
    }

    .tabs-container .menus-wrapper.expand {
        position: fixed;
        bottom: 0;
        left: 0;
        top: inherit;
        width: 100%;
    }

    .tabs-container .menus-wrapper.expand .links .item-click:not(.active) {
        display: none;
    }

    .tabs-container .menus-wrapper.expand #previous-button {
        position: absolute;
        top: 15px;
        left: 0;
    }
    .tabs-container .menus-wrapper.expand #next-button {
        position: absolute;
        top: 15px;
        right: 0;
    }
    .tabs-container .menus-wrapper.expand .w-full {
        display: flex;
        justify-content: center;
        position: relative;
    }

    .tabs-container .menus-wrapper.expand .links {
        width: 80%;
    }

    .tabs-container .menus-wrapper.expand .slp-sidebar {
        min-width: 300px;
    }

    .tabs-container .menus-wrapper.expand .buttons-container .button {
        padding: 0;
    }

    .tabs-container .menus-wrapper .slp-sidebar {
        margin: 0;
        padding: 0;
    }

    .tabs-container .menus-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        top: inherit;
        z-index: 10;
        transition: .5s;
        width: 100%;
    }

    .tabs-container .menus-wrapper.expand .slp-sidebar {
        min-width: 100%;
    }

}

.eratf-ajax-content #view-block.paragraph--type--view-block .container {
    width: initial!important;
}


/* --- Global Styles & Typography --- */

/* Apply font from the link you included, and set a base size */
/* --- General Base and Typography --- */

body {
    background-color: #fff;
    color: #000;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7; /* Subtle hover effect for links */
}

/* --- Header and Branding --- */

.content-header {
    padding-top: 50px; /* Space from the top */
    padding-bottom: 50px;
    background-color: transparent!important;
}

/* Use flexbox to align branding (left) and language switcher (right) */
.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Site Name (SARA ALVES) */
#block-galery-site-branding {
    padding: 0;
    margin: 0;
}

.site-name a {
    font-size: 2.5em; /* Large size for the name */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* --- Language Switcher (EN / PT) --- */

.language-switcher-language-url {
    font-size: 0.85em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.language-switcher-language-url .links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.language-switcher-language-url .links li {
    margin: 0;
    padding: 0;
}

/* Add the separator slash */
.language-switcher-language-url .links li:not(:last-child)::after {
    content: "/";
    padding: 0 5px;
    font-size: 18px;
}

/* Style active/inactive language as seen in the image */
.language-switcher-language-url .links li a {
    opacity: 0.6;
    font-size: 18px;
}

.language-switcher-language-url .links li.is-active a {
    opacity: 1; /* Solid black for active language */
}



/* The actual menu */
#block-galery-mainnavigation {
    margin: 0;
    padding: 0;
}

#block-galery-mainnavigation-2 . menu,
#block-galery-mainnavigation .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#block-galery-mainnavigation .menu-item {
    font-size: 1em;
    padding: 2px 0;
}

/* Styling for the main menu items (Work, Bio, CV, Contact) */
/* Assuming these are top-level menu items */
.menu-item a.is-active {
    font-weight: 700; /* Bold for main sections */
}
#block-galery-mainnavigation-2 li,
#block-galery-mainnavigation li {
    list-style: none;
}

#block-galery-mainnavigation .menu-item--expanded > ul {
    margin-left: 20px;
}

#block-galery-mainnavigation .menu-item--expanded {
    position: relative;
    cursor: pointer;
}

#block-galery-mainnavigation .menu-item--expanded.active > .menu,
#block-galery-mainnavigation-2 .menu-item--expanded.active > .menu {
    opacity: 1;
    visibility: visible;
    display: flex;
}

#block-galery-mainnavigation-2 .menu-item--expanded > .menu,
#block-galery-mainnavigation .menu-item--expanded > .menu {
    background-color: white;
    display: none;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

@media only screen and (min-width: 1024px) {
    #block-galery-mainnavigation-2, .menu-toggle {
        display: none;
    }
}

@media only screen and (max-width: 1023px) {
    #block-galery-mainnavigation,
    .language-switcher-language-url,
    .field--name-field-pages > div:nth-child(2) {
        display: none;
    }
    .region-sidebar-first {
        min-width: initial;
        max-width: initial;
    }

    #block-galery-mobilemenutoggleicon {
        position: relative;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 25px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
        position: absolute;
        right: 0;
        top: -10px;
    }

    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease-in-out;
    }

    .region-header.menu-open .menu-toggle .hamburger-line:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .region-header.menu-open .menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .region-header.menu-open .menu-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    .region-header.menu-open .language-switcher-language-url {
        display: initial;
        z-index: 9999;
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .region-header.menu-open #block-galery-site-branding {
        z-index: 9999;
    }
}

.field--name-field-year,
.field--name-field-subtitle,
.field--name-field-dimensions {
    display: none;
}

.paragraph--type--title-with-description {
    display: flex;
}

.paragraph--type--title-with-description p {
    margin: 0;
}

.paragraph--type--title-with-description .field--name-field-title {
    margin-right: 10px;
}

.field--name-field-title {
    font-weight: bold;
    min-width: fit-content;
}
.text-row > .text-column {
    width: fit-content;
    min-width: fit-content;
    margin-right: 10px;
}

.paragraph--type--title .field--name-field-title {
    margin-bottom: 10px;
    margin-top: 40px;
}

a:hover {
    color: #000;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.masonry-item a {
    opacity: 1;
}

.node__content > a {
    opacity: 1;
}

.mfp-arrow {
    opacity: 1;
}

.mfp-arrow-left:before {
    border: none;
    opacity: 1;
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url("../../images/right-arrow.png");
    transform: rotate(180deg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.mfp-arrow-right:before {
    border: none;
    opacity: 1;
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url("../../images/right-arrow.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.mfp-arrow-right:after, .mfp-arrow-left:after {
    content: none;
}

.mfp-counter {
    display: none;
}

@media (max-width: 1024px) {
    .region-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 1000;
        background: #fff;
    }

    .block-system-branding-block .site-name a {
        font-size: 20px;
        font-weight: bold;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
        padding: 0;
    }

    #block-galery-mainnavigation-2 {
        display: none;
    }

    .region-header.menu-open #block-galery-mainnavigation-2 {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #fff;
        z-index: 999;
        padding-top: 80px;
    }

    #block-galery-mainnavigation-2 .visually-hidden {
        display: none;
    }

    #block-galery-mainnavigation-2 .menu {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: right;
        padding-right: 10px;
    }

    #block-galery-mainnavigation-2 .menu a,
    #block-galery-mainnavigation-2 .menu span {
        color: #000;
        text-decoration: none;
        display: inline-block;
    }

    #block-galery-mainnavigation-2 .menu .menu li {
        font-size: 16px;
        padding: 5px 0;
        font-weight: normal;
    }
}

.mfp-container {
    /* Prevents the browser from scrolling or zooming in this area */
    touch-action: none;
}