/* VitruvianOS logo colors */
.navbar-brand .vos-v   { color: #cc1111; }
.navbar-brand .vos-mid { color: #1a1a1a; }
.navbar-brand .vos-os  { color: #0055cc; }
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-top: 22px;
    padding-bottom: 0;
}

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    min-height: 230px;
}

/* Carousel image centering */
.ur-slide {
    min-height: 380px;
}
.ur-slide__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 4;
    max-height: 340px;
    padding: 16px;
}
.ur-slide__media img {
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
}

/* Footer centering */
.ur-footer__grid {
    justify-content: center;
}
.ur-footer__col {
    text-align: left;
}

/* Screenshots gallery */
.vos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 48px;
}
.vos-gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    aspect-ratio: 16/10;
}
.vos-gallery-thumb img,
.vos-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}
.vos-gallery-thumb:hover img { opacity: 0.85; }

/* Lightbox */
.vos-gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.vos-gallery-lightbox:target { display: flex; }
.vos-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}
.vos-gallery-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    text-align: center;
}
.vos-gallery-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 3px;
    display: block;
}
.vos-gallery-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}
.vos-gallery-caption {
    color: #ddd;
    margin-top: 8px;
    font-size: 0.9em;
}

/* Share buttons */
.ur-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.ur-share__label {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}
.ur-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.ur-share__link:hover { opacity: 0.8; color: #fff; }
.ur-share__link[title="WhatsApp"]   { background: #25D366; }
.ur-share__link[title="Twitter"]    { background: #1DA1F2; }
.ur-share__link[title="LinkedIn"]   { background: #0077B5; }
.ur-share__link[title="Telegram"]   { background: #0088CC; }
.ur-share__link[title="Facebook"]   { background: #1877F2; }
