.anos300-layout {
    --anos300-active-color: #99efba;
    --period-accent-color: #d9f7de;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    margin-top: 99px;
    background: #fff;
    overflow: hidden;
}

.footer-custom{
    display: none !important;
}

.anos300-years-column {
    position: relative;
    padding: 0 0 16px 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    direction: rtl;
    height: calc(100dvh - 52px);
}

/* .anos300-years-column::before {
    content: "";
    position: sticky;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 52px;
    background: var(--period-accent-color);
    z-index: 2;
    margin-top: 1px;
    border-bottom: solid 2px var(--border-color);
} */

.anos300-years-column-container{
    margin-top: 52px;
    height: calc(100vh - 151px);
}

.anos300-years-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-left: 0;
    border-left: 48px solid #F0F2F2;
    padding: 50px 0;
    height: 150%;
    direction: ltr;
}

.anos300-years-list::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -1px;
    bottom: 5px;
    width: 2px;
    background: var(--border-color);
}

.anos300-year-item {
    position: relative;
    width: 90%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    text-align: left;
    padding: 4px 10px 4px 30px;
    font-size: 20px;
    line-height: 1;
    color: #b5b5b5;
    /* transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease; */
    margin-left: -15px;
}

/* .anos300-year-item:hover {
    transform: translateX(2px);
} */

.anos300-year-dot {
    position: absolute;
    left: 2px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%) rotate(45deg);
    border: 2px solid var(--border-color);
    background: #fff;
}

.anos300-year-label{
    padding: 6px 20px;
    margin-left:20px;
    /* transition: all .35s ease; */
    font-size: 17px;
    font-weight: 700;
}

.anos300-year-item.is-active .anos300-year-label {
    background: #f0f2f2;
    color: #111;
    border: 2px solid #111;
    position: relative;
    border-radius: 100px;
}

.anos300-year-item .anos300-year-label:after{
    content: '';
    width:0px;
    border-top:2px solid;
    position: absolute;
    left: 50px;
    top:50%;
    transform: translate(-100%,-50%);
    /* transition: all .5s; */
}

.anos300-year-item.is-active .anos300-year-label:after{
    width: 22px;
    left: 0px
}

.anos300-year-item.is-active .anos300-year-dot {
    background: var(--anos300-active-color);
    border-color: var(--border-color);
    width: 32px;
    height: 32px;
    left: -2px;
    z-index: 1040;
}

.anos300-main-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    margin-top: 52px;
}

.anos300-period-header {
    position: fixed;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    --period-accent-color: #d9f7de;
    width: 100%;
    z-index: 1041;
}

.anos300-period-strip {
    width: 100%;
    height: 52px;
    background: var(--period-accent-color);
}

.anos300-period-badge {
    position: absolute;
    top: 49%;
    transform: translateY(0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 290px;
    min-height: 46px;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    font-size: 33px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 32px;
    margin-left: 290px;
    z-index: 1;
}

.anos300-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    height: calc(100vh - 151px);
}

.anos300-middle-column,
.anos300-text-column,
.anos300-right-column {
    padding: 18px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* transition: background-color 0.25s ease, box-shadow 0.25s ease; */
    margin-top: -1px;
}

.anos300-middle-column,
.anos300-text-column{
    padding-top: 40px;
}


.anos300-text-column {
    border-right: 1px solid #d5d5d5;
    margin-top: -1px !important;
}

.anos300-map-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* transition: transform 0.35s ease, opacity 0.35s ease; */
}

#anos300MapImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* transition: opacity 0.3s ease; */
}

.anos300-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #707070;
    border: 1px dashed #d0d0d0;
}

.anos300-map-legend {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 20px;
    line-height: 1;
    color: #1f1f1f;
}

.anos300-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legend-square,
.legend-line-red,
.legend-line-green {
    display: inline-block;
    flex: 0 0 auto;
}

.legend-square {
    width: 13px;
    height: 13px;
    background: #000;
}

.legend-line-red,
.legend-line-green {
    width: 20px;
    height: 2px;
}

.legend-line-red { background: #c52323; }
.legend-line-green { background: #3db588; }

.anos300-text-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.anos300-text-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #111;
    min-height: 44px;
    min-width: 44px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 5;
}

.anos300-text-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.anos300-text-toggle-icon span {
    display: block;
    width: 14px;
    height: 2px;
    background: #111;
}

.anos300-text-body {
    min-height: 0;
    transition: max-height .5s ease;
    margin-top: 36px;
}

.anos300-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
}
.anos300-highlights li img {
    height: 32px;
    width: 32px;
}
.anos300-highlights li {
    position: relative;
    display: flex;
    margin-bottom: 18px;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    /* transition: transform 0.25s ease, opacity 0.25s ease; */
    align-items: center; 
    gap: 10px;    
    padding-left: 0;       
}

/* .anos300-text-column:hover .anos300-highlights li {
    transform: translateX(2px);
} */

/* .anos300-highlights li::before {
    content: "✶";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 18px;
} */

.anos300-description,
.anos300-right-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #1e1e1e;
    display: block;
   
}

.anos300-right-text{
    display: none;
}

.anos300-right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anos300-gallery-featured {
    margin: 0;
}

.anos300-gallery-featured img,
.anos300-gallery-featured .anos300-gallery-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    /* transition: transform 0.35s ease, filter 0.35s ease; */
}

.anos300-gallery-featured img {
    cursor: zoom-in;
    background-color: #000;
}

.anos300-gallery-featured figcaption {
    margin: 18px 28px 50px;
    font-size: 14px;
    text-align: center;
}

.anos300-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    /*! background: #111; */
}
.anos300-gallery-thumb {
    outline: 2px solid var(--border-color);
    border: 0;
    padding: 0;
    background: #fff;
    cursor: zoom-in;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.anos300-gallery-featured img:hover,
.anos300-gallery-thumb:hover {
    transform: scale(1.01);
    cursor: pointer;
    filter: saturate(150%) brightness(1.2);
}

.anos300-gallery-thumb img,
.anos300-gallery-thumb .anos300-gallery-fallback {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.anos300-gallery-thumb--featured-source {
    display: none;
}

.anos300-gallery-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    background: #ececec;
}

.anos300-empty {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.anos300-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.anos300-lightbox.is-open { display: block; }

.anos300-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.anos300-lightbox-dialog {
    position: relative;
    width: min(1400px, calc(100vw - 30px));
    height: calc(100vh - 30px);
    margin: 15px auto;
    background: #00000000;
    border-radius: 10px;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.anos300-lightbox-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    border-radius: 50px;
    padding-left: 12px;
    padding-right: 12px;
    background-color: #00000025;
    font-size: 50px;
    line-height: 1;
    color: #ffffff;
    z-index: 1050;
}

.anos300-lightbox-close:hover {
   background-color: #000000b0;
   cursor: pointer;
}

.anos300-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff88;
    border-radius: 999px;
    background: #0000006b;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1045;
}

.anos300-lightbox-nav.is-prev {
    left: 22px;
}

.anos300-lightbox-nav.is-next {
    right: 22px;
}

.anos300-lightbox-nav:hover {
    background: #000000bf;
}

.anos300-lightbox-counter {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    color: #d7d7d7;
}

#anos300LightboxImage {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    flex: 1;
}

#anos300LightboxCaption {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.25;
    height: 100px;
    overflow-y: auto;
}

.zoomable {
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

/* .anos300-main-content.is-swapping .anos300-map-wrapper,
.anos300-main-content.is-swapping .anos300-highlights,
.anos300-main-content.is-swapping .anos300-description,
.anos300-main-content.is-swapping .anos300-right-text,
.anos300-main-content.is-swapping .anos300-gallery-featured,
.anos300-main-content.is-swapping .anos300-gallery-grid {
    opacity: 0.55;
    transform: translateY(3px);
} */

@media (max-width: 699px) {
    .anos300-layout {
        grid-template-columns: 82px minmax(0, 1fr);
        margin-top: 0;
        min-height: calc(100dvh - 144px);
        height: calc(100dvh - 144px);
        overflow: hidden;
        background: #f0f2f2;
    }

    .anos300-years-column-container{
        position: fixed;
        top: 150px;
        bottom: 0;
        margin-top: 0;
        height: calc(100vh - 130px);
    }

    .anos300-years-column {
        border-right: 0;
        border-bottom: 0;
        padding: 0px 0 0px;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        max-height: none;
        /* background: #FFF; */
        direction: ltr;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 0;
        overscroll-behavior: contain;
    }

    .anos300-years-list {
        flex-direction: column;
        gap: 22px;
        border-left: 50px solid #f0f2f2;
        padding: 30px 0 0;
        height: 185%;
    }

    .anos300-years-list::before {
        display: block;
        left: -1px;
        width: 2px;
    }

    .anos300-year-item {
        width: 100%;
        margin-left: -11px;
        padding: 0 6px 0 22px;
        min-height: 44px;
        font-size: 15px;
        overflow: visible;
    }

    .anos300-year-dot {
        left: 0px;
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .anos300-year-label {
        margin-left: 12px;
        padding: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        color: #a6a6a6;
        display: inline-block;
        white-space: nowrap;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        transform-origin: center;
        letter-spacing: 0;
    }

    .anos300-year-item .anos300-year-label:after {
        display: none;
    }

    .anos300-year-item.is-active .anos300-year-label {
        border: 0;
        background: transparent;
        color: #111;
    }

    .anos300-year-item.is-active .anos300-year-dot {
        width: 24px;
        height: 24px;
        left: -1px;
    }

    .anos300-main-content {
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        background: #fff;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        margin-left: 50px;
        /* background: red; */
        margin-top: 0;
    }

    .anos300-period-header {
        margin-top: 0;
        height: 76px;
        position: relative;
        top: auto;
        z-index: 25;
        padding-top: 10px;
        /*! background: #fff; */
        margin-top: 81px;
        margin-bottom: -7px;
    }

    .anos300-period-strip {
        height: 52px;
        border-top: 2px solid var(--border-color);
        border-bottom: 2px solid var(--border-color);
    }

    .anos300-period-badge {
        margin-left: 0;
        min-width: 236px;
        min-height: 48px;
        padding: 8px 26px;
        top: 45%;
        font-size: 30px;
        letter-spacing: 0.02em;
    }

    .anos300-main-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        row-gap: 0;
    }

    .anos300-middle-column,
    .anos300-text-column,
    .anos300-right-column {
        margin-top: 0;
        padding: 12px 12px 12px;
        border-right: 0;
        border-bottom: 0;
        overflow: visible;
    }

    .anos300-middle-column,
    .anos300-text-column {
        padding-top: 16px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .anos300-map-wrapper {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .anos300-map-legend {
        margin-top: 10px;
        font-size: 16px;
        line-height: 1.1;
        padding-left: 8px !important;
    }

    .anos300-text-column {
        padding-top: 6px;
        padding-bottom: 2px;
        border-bottom: 1px solid #d5d5d5;
    }

    .anos300-text-column.is-collapsed .anos300-text-body {
        max-height: 85px;
        
        overflow: hidden;
        mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    }

    .anos300-text-column.is-expanded .anos300-text-body {
        max-height: 2000px;
        overflow: visible;
        mask-image: none;
    }

    .anos300-text-toggle {
        display: inline-flex;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 8px 0 12px;
        min-height: 46px;
    }

    .anos300-description {
        margin-bottom: 12px !important;
        font-size: 16px;
        line-height: 1.23;
        letter-spacing: 0.01em;
    }

    .anos300-highlights li {
        margin-bottom: 14px;
        font-size: 16px;
        line-height: 1.18;
        align-items: flex-start;
    }

    .anos300-highlights li img {
        width: 26px;
        height: 26px;
        margin-top: 2px;
    }

    .anos300-right-column {
        padding-top: 10px;
        padding-bottom: 24px;
    }

    .anos300-gallery-featured {
        display: none;
    }

    .anos300-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
        background: transparent;
    }

    .anos300-gallery-thumb {
        outline: 2px solid var(--border-color);
        min-height: 78px;
    }

    .anos300-gallery-thumb--featured-source {
        display: block;
    }

    .anos300-lightbox-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 8px;
    }

    .anos300-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .anos300-lightbox-nav.is-prev {
        left: 8px;
    }

    .anos300-lightbox-nav.is-next {
        right: 8px;
    }

    .anos300-lightbox-close {
        top: 2px;
        right: 4px;
        font-size: 42px;
        padding: 0 10px;
    }

    #anos300LightboxCaption {
        font-size: 15px;
        height: 92px;
        margin-top: 8px;
    }
}

@media (max-width: 699px) {

    .no-scrollbar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .anos300-layout {
        grid-template-columns: none;
        min-height: calc(100dvh - 150px);
        height: calc(100dvh - 150px);
        position: relative;
    }

    .anos300-year-label {
        font-size: 14px;
        margin-left: -50px;
    }

    .anos300-period-badge {
        min-width: 214px;
        font-size: 28px;
    }
}
/* 
@media (max-width: 390px) {
    .anos300-layout {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: calc(100dvh - 136px);
        height: calc(100dvh - 136px);
    }

    .anos300-years-list {
        border-left-width: 30px;
    }

    .anos300-year-item {
        padding-left: 20px;
    }

    .anos300-period-header {
        height: 72px;
        top: auto;
    }

    .anos300-period-badge {
        min-width: 190px;
        min-height: 44px;
        font-size: 26px;
        padding: 7px 18px;
    }

    .anos300-description {
        font-size: 17px;
    }

    .anos300-highlights li {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .anos300-layout {
        grid-template-columns: 66px minmax(0, 1fr);
        min-height: calc(100dvh - 132px);
        height: calc(100dvh - 132px);
    }

    .anos300-year-label {
        font-size: 13px;
        margin-left: 8px;
    }

    .anos300-period-badge {
        min-width: 176px;
        font-size: 25px;
    }

    .anos300-description {
        font-size: 16px;
    }

    .anos300-highlights li {
        font-size: 16px;
    }
} */



