:root {
    --hex-color: rgb(255, 250, 237);
    --hex-border: rgb(53, 65, 79);
    --cell-size: 17vw;
    --columns: 7;
    --gap: 1.25vw;
    --cell-height: calc(var(--cell-size) * 1.15);
    --container-width: calc((var(--cell-size) + var(--gap)) * var(--columns));
    --row-height: calc(var(--cell-size) * 0.8666);
    --margin-offset: calc(var(--cell-size) / 2 + var(--gap) / 2);
    --light-color: rgb(255, 250, 237);
    --accent-color: rgb(53, 65, 79);
    --sidebar-bg: #356f4a;
    --sidebar-text: #fff6f7;
    --sidebar-hover: #2a5a3a;
    --main-bg: #f8f9fa;
    --text-dark: #fff6f7;
    --text-light: #c5dced;
    --sidebar-width: 70px;
    --sidebar-expanded-width: 280px;
    --nav-item-hover: #2a3a4a;
}

.cell > .content.content-portrait {
    display: none;
}
.cell.interactive-desktop::after {
    background-color: var(--hex-color);
}
.cell.interactive-all::after {
    background-color: var(--hex-color);
}

@media (hover: hover) {
    .cell.interactive-desktop:hover::after, .cell.interactive-all:hover::after {
        background-color: var(--hex-border);
    }
    .cell.interactive-desktop:hover .content, .cell.interactive-all:hover .content {
        color: var(--hex-color);
    }
    .cell.interactive-portrait:hover::after {
        background-color: var(--hex-border);
    }
    .cell.interactive-portrait:hover .content {
        color: var(--hex-border);
    }
}

@media (orientation: portrait) {
    :root {
        --cell-size: 36vw;
        --columns: 7;
        --gap: 2vw;
        --cell-height: calc(var(--cell-size) * 1.15);
        --container-width: calc((var(--cell-size) + var(--gap)) * var(--columns));
        --row-height: calc(var(--cell-size) * 0.8666);
        --margin-offset: calc(var(--cell-size) / 2 + var(--gap) / 2);
    }
}

@media (orientation: portrait) and (max-aspect-ratio: 9 / 16) {
    .cell > .content.content-desktop {
        display: none;
    }
    .cell > .content.content-portrait {
        display: flex;
    }
    .cell.interactive-desktop::after {
        background-color: var(--hex-border);
    }
    .cell.interactive-portrait::after {
        background-color: var(--hex-color);
    }
    @media (hover: hover) {
        .cell.interactive-portrait:hover::after {
            background-color: var(--hex-border);
        }
        .cell.interactive-portrait:hover .content {
            color: var(--hex-color);
        }
        .cell.interactive-desktop:hover::after {
            background-color: var(--hex-border);
        }
        .cell.interactive-desktop:hover .content {
            color: var(--hex-border);
        }
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    overflow: hidden;
    position: fixed;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh;
    width: 100vw;
}

body {
    margin: 0;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    background: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Red Hat Text', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nosifer', sans-serif;
    font-weight: 400;
}

a {
    color: var(--text-light);
    font-weight: 600;
}

a:hover {
    text-decoration: none;
}

body.home {
    background: #356f4a;
}

.honeycomb {
    position: absolute;
    display: grid;
    width: var(--container-width);
    margin: 0 auto;
    grid-template-columns: repeat(var(--columns), minmax(var(--cell-size), 1fr));
    grid-auto-rows: var(--row-height);
    gap: var(--gap);
    padding-bottom: calc(var(--cell-height) * 0.25);
}

.cell {
    width: var(--cell-size);
    height: var(--cell-height);
    margin: 0;
    background-color: var(--hex-border);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    .content {
        z-index: 3;
        display: flex;
        flex: 1 0 auto;
        height: 100%;
        align-items: center;
        justify-content: center;
    }
    .logo {
        width: 100%;
        height: 100%;
        z-index: 3;
        color: var(--hex-border);
    }
}

.cell-logo {
    width: var(--cell-size);
    height: var(--cell-height);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.cell-logo div {
    width: 100%;
    height: 100%;
}

.cell::after {
    content: "";
    width: calc(var(--cell-size) * 0.9);
    height: calc(var(--cell-height) * 0.9);
    background-color: var(--hex-border);
    position: absolute;
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    z-index: 1;
}

.cell.dark::after {
    background-color: var(--hex-border);
}

.icon-logo-alt {
    display: none;
}
.nav-item:hover .icon-logo-main {
    display: none;
}
.nav-item:hover .icon-logo-alt {
    display: block;
}

.cell:nth-child(14n + 8) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 9) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 10) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 11) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 12) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 13) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}
.cell:nth-child(14n + 14) {
    margin-left: calc(-1 * ((var(--cell-size) / 2) + (var(--gap) / 2)));
}

.social-btn {
    color: var(--hex-border);
    text-decoration: none;
    font-size: calc(var(--cell-size) * 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-link {
    color: var(--hex-border);
    text-decoration: none;
    font-size: calc(var(--cell-size) * 0.17);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    i, p {
        margin: 0.5vw;
    }
    p {
        font-size: calc(var(--cell-size) * 0.14);
        font-weight: 600;
        line-height: 1;
    }
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.sidebar.expanded {
    width: var(--sidebar-expanded-width);
}

.sidebar.expanded .hamburger-closed {
    display: none;
}

.sidebar:not(.expanded) .hamburger-expanded {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    width: 50px;
    height: 50px;
    margin: 10px;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger:hover {
    background: var(--sidebar-hover);
}

.hamburger i {
    color: var(--sidebar-text);
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Navigation Items */
.nav-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    padding: 5px 10px;
    width: 100%;
}

.nav-item .icon-container {
    background: var(--light-color);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.icon-container, .logo-container, .icon-logo {
    width: 50px;
    height: 58px;
}

.nav-item .icon-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--light-color);
    clip-path: polygon(
        50% 0%,
        100% 25%,
        100% 75%,
        50% 100%,
        0% 75%,
        0% 25%
    );
    z-index: -1;
}

.nav-item:hover .icon-container {
    background: var(--accent-color);
}

/* Active state for current page */
.nav-item.active .icon-container {
    background: var(--accent-color);
    cursor: default;
}
.nav-item.active i {
    color: var(--light-color);
}

.nav-item.active .icon-container::before {
    display: none;
}

.nav-item.active {
    cursor: default;
    pointer-events: none;
}

.nav-item.active:hover .icon-container {
    background: transparent;
}

.nav-item i {
    color: var(--accent-color);
    font-size: 24px;
}

.nav-item .label {
    position: relative;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.sidebar.expanded .nav-item .label {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.sidebar.expanded + .main-content {
    margin-left: var(--sidebar-expanded-width);
}

/* Header Image */
.header-image {
    width: 100%;
    height: 400px;
    background: url('/img/about-header.jpg') no-repeat center center / auto 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-light);
    word-break: break-word;
    overflow-wrap: break-word;
}

.content-section p a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --sidebar-expanded-width: 100vw;
    }

    .header-image {
        height: 300px;
    }
}

/* Gallery Styles */
.gallery-container {
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--light-color);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* GLightbox Customization */
.glightbox-container .gslide-description {
    background: rgba(53, 65, 79, 0.9);
    color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin: 10px;
}

.glightbox-container .gslide-title {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item img {
        height: 220px;
    }
}