.lc-gallery {
    background: #1F1F1F;
    display: flex;
    position: relative;
    height: 100vh;
}

.lc-gallery .lc-wrapper {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.lc-gallery .lc-wrapper .lc-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-in-out;
    overflow: hidden;
}

/* overlay */
.lc-gallery .lc-nav-item:after,
.lc-gallery .lc-slide:after {
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .65);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all .33s ease-in;
    z-index: 1;
}

.lc-gallery .lc-nav-item.current:hover:after,
.lc-gallery .lc-slide:has(.lc-hover-inner:hover):after {
    opacity: 1;
    visibility: visible;
}

.lc-gallery .lc-wrapper .lc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-gallery .lc-nav {
    flex: 0 0 40%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* shadow */
.lc-gallery .lc-nav:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    box-shadow: 0 0 50px 100px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.lc-gallery .lc-nav:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    box-shadow: 0 0 50px 100px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.lc-nav-inner {
    /* gap will be used to calculate nav item size as well */
    --gap: 100px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: var(--gap);
    justify-content: center;
    width: 100%;
}

.lc-gallery .lc-nav .lc-nav-item {
    width: calc(33.33vh - (var(--gap) / 2));
    height: calc(33.33vh - (var(--gap) / 2));
    opacity: 0.5;
    transition: all .25s ease-in-out;
    position: relative;
}

.lc-gallery .lc-nav .lc-nav-item.current {
    opacity: 1;
    transform: scale(1.1);
}

.lc-nav-item.current[data-cat="0"] {
    outline: 9px #0A3A6E solid;
}

.lc-nav-item.current[data-cat="1"] {
    outline: 9px #C5A76D solid;
}

.lc-nav-item.current[data-cat="2"] {
    outline: 9px #AB9C8F solid;
}

.lc-gallery .lc-nav-inner {
    transition: all .4s cubic-bezier(.45, .05, .55, .95);
}

.lc-gallery .lc-nav .lc-nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-gallery .lc-menu {
    position: absolute;
    bottom: 100px;
    left: 100px;
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    z-index: 3;
}

.lc-menu-item {
    color: black;
    padding: 15px 20px;
    border-radius: 30px;
}

.lc-menu-item.current {
    color: white;
}

.lc-menu-item[data-cat="0"].current {
    background: #0A3A6E;
    color: white;
    border-radius: 30px;
}

.lc-menu-item[data-cat="1"].current {
    background: #C5A76D;
}

.lc-menu-item[data-cat="2"].current {
    background: #AB9C8F;
}

.lc-gallery .lc-wrapper .lc-slide.current {
    opacity: 1;
    visibility: visible;
}

.lc-gallery .lc-wrapper .lc-slide.current img {
    animation: kenburns 25s infinite;
}

/* Hover circle on the nav item and the main image */

.lc-gallery .lc-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 2;
}

.lc-gallery .lc-slide:hover .lc-hover {
    width: 44%;
}

.lc-gallery .lc-nav-item:hover .lc-hover {
    width: 66%;
}

.lc-gallery .lc-slide .lc-hover-inner {
    background: rgba(197, 167, 109, 0.2);
    font-size: 28px;
    gap: 20px;
}

.lc-gallery .lc-nav-item .lc-hover-inner {
    background: rgba(197, 167, 109, 0.2);
    font-size: 19px;
    gap: 10px;
}

.lc-gallery .lc-hover:after {
    content: "";
    padding-bottom: 100%;
    display: block;
}

.lc-gallery .lc-hover .lc-hover-inner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px white solid;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.55, .09, .68, .53);
    transform: scale(0.9);
}

/* when it comes to nav, you can hover anywhere
but for actual slides, you'll have to hover in the middle
 */
.lc-gallery .lc-nav-item.current:hover .lc-hover-inner,
.lc-gallery .lc-slide .lc-hover:hover .lc-hover-inner {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.lc-title,
.lc-subtitle {
    padding: 0;
    margin: 0;
}

.lc-title {
    font-family: var(--font-stack-heading-secondary);
}

.lc-subtitle {
    font-size: 0.75em;
}