.single-distillery {
    background-color: var(--background);
}

/* Reset font-size to web standard... */
.distillery * {
    font-size: 16px;
}

.distillery a {
    color: var(--gray);
}

/* .distillery a:hover {
    text-decoration: underline;
} */

.distillery h3.heading {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
}

.distillery {
    margin: 80px auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .distillery {
        margin: 40px auto;
    }
}

.pagination {
    font-size: 14px;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.pagination a {
    color: var(--gray) !important;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-weight: 500;
}

.pagination a span {
    position: relative;
    overflow: hidden;
}

.pagination a span:before {
    z-index: 10;
    content: '';
    position: absolute;
    width: 97%;
    height: .7px;
    background-color: var(--gray);
    bottom: -0px;
    left: -103%;
    transition: .6s all ease;
}

.pagination a span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: .7px;
    background-color: var(--gray);
    bottom: -0px;
    left: 0;
    transition: .6s all ease;
    z-index: 10;
}

.pagination a span:hover:before {
    transform: translate(107%);
}

.pagination a span:hover:after {
    transform: translate(107%);
}

.pagination svg {
    width: 16px;
}

.heading {
    margin-top: 6px;
}

.heading h1 {
    color: var(--black);
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.excerpt {
    margin-top: 16px;
    font-size: 16px;
    max-width: 800px;
}

/* Gallery */
.distillery-gallery {
    position: relative;
}

.image-gallery {
    margin-top: 80px;
    border-radius: 8px;
    width: 100%;
    height: 480px;
    overflow: hidden;
    gap: 6px;
}

@media screen and (max-width: 1024px) {
    .image-gallery {
        margin-top: 48px;
        height: 350px;
    }
}

.image-gallery > div {
    max-height: inherit;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.relative {
    position: relative;
}

.right {
    gap: 6px;
}

@media (max-width: 768px) {
    .right {
        display: none;
    }
}

.right div {
    position: relative;
    gap: 6px;
}

.right div img {
    position: absolute;
}

/* Modal */
.open-modal {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--white);
    background-color: #0000007e;
    backdrop-filter: blur(1px);
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
}

@media screen and (max-width: 768px) {
    .open-modal {
        position: unset;
        border-radius: 8px;
        margin-top: 8px;
        margin-left: auto;
    }
}

.open-modal:hover, .open-modal:focus {
    background-color: var(--primary);
    color: var(--black);
    outline: none;
}

.open-modal span {
    font-weight: 500;
    font-size: 14px;
}

.open-modal svg {
    width: 16px;
}

.caskx-modal .modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.caskx-modal .modal-content img {
    border-radius: 8px;
    width: 100%;
}

.spacer {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #CBD5E1;
    margin-top: 96px;
    margin-bottom: 96px;
}

@media screen and (max-width: 768px) {
    .spacer {
        margin-top: 64px;
        margin-bottom: 64px;
    }
}

.spacer:last-of-type {
    display: none;
}

/* Overview */
.distillery-overview {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.distillery-overview .overview {
    grid-column: span 3;
}

.distillery-overview .overview ul {
    padding-left: 16px;
}

.distillery-overview .overview ul li {
    margin-bottom: 8px;
}

.distillery-overview .overview ul li:last-of-type {
    margin-bottom: 0;
}

.distillery-overview .waitlist {
    background-color: var(--white);
    border-radius: 8px;
    padding: 16px;
    grid-column: span 2;
}

@media screen and (max-width: 768px) {
    .distillery-overview {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .distillery-overview .overview {
        grid-column: span 1;
    }

    .distillery-overview .waitlist {
        grid-column: span 1;
    }
}

/* Team section */
.team-member-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px
}

@media screen and (max-width: 1024px) {
    .team-member-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px
    }
}

@media screen and (max-width: 768px) {
    .team-member-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px
    }
}

@media screen and (max-width: 600px) {
    .team-member-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 16px
    }
}

.team-member-container .team-member:first-of-type {
    border-top: 0;
}

.team-member-container .team-member:last-of-type {
    border-bottom: 0;
}

.team-member-container .team-member {
    /* background-color: var(--white); */
    /* display: flex; */
    /* gap: 16px; */
    /* align-items: center; */
    /* border-radius: 8px; */
    /* padding: 16px; */
}

.slider-pagination {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.navigation {
    display: none;
    position: relative !important;
    gap: 10px;
    margin: 0 0 16px 0 !important;
}

/* @media screen and (max-width: 768px) {
    .navigation {
        display: flex;
    }
} */

.navigation svg {
    width: 16px;
}

.navigation button {
    all: unset;

    padding: 7px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D6D6D6;
    border-radius: 4px;
    cursor: pointer;
    transition: ease .4s all;
}

.navigation button:focus, .navigation button:hover {
    background-color: transparent !important;
}

.navigation button:disabled {
    opacity: .5;
    pointer-events: none;
}

/* @media screen and (max-width: 600px) {
    .team-member-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px
    }
}

@media screen and (max-width: 425px) {
    .team-member-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px
    }
} */

.team-member-container img {
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

.team-member-container h3 {
    font-size: 20px;
    color: var(--black);
    font-weight: 600;
    margin: 0;
}

.team-member-container .team-position {
    font-size: 14px;
    color: var(--gray);
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Videos */

.distillery-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.distillery-videos .video-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    margin: 0;
}

.video-item .video-thumbnail {
    position: relative;
}

.video-item .video-thumbnail .open-modal {
    all: unset;

    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    z-index: 1;
}

.video-item .video-thumbnail .open-modal svg {
    width: 28px;
}

.video-item .video-thumbnail img {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.video-item .video-thumbnail .no-thumbanil {
    background-color: var(--gray);
    opacity: .2;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.video-title {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.modal-container iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 6px;
}

@media screen and (max-width: 768px) {
    .distillery-videos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.past-investments-container {
    padding-bottom: 4px;;
    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px */
}

.past-investments .navigation {
    display: flex;
}

.investment-slide {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 12px -10px;
    padding: 16px;
    height: 100%;
}

.investment-slide h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.investment-slide ul {
    padding: 0 0 0 20px;
    color: var(--gray);
}

.investment-slide .file-item-thumnail {
    margin-bottom: 24px;
}

.investment-slide .file-item-content {
    margin-bottom: 0;
}

.investment-slide .file-item {
    padding: 0;
}