.materials-image-section:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 4px;
    border-radius: 10px;
}

.materials-gallery-image[hidden] {
    display: none !important;
}

.materials-gallery-image {
    cursor: zoom-in;
}

.materials-gallery-navigation {
    left: 18px;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.materials-image-section:hover .materials-gallery-navigation,
.materials-image-section:focus-within .materials-gallery-navigation {
    opacity: 1;
    visibility: visible;
}

.materials-gallery-navigation .nav-button {
    border: 0;
    pointer-events: auto;
    cursor: pointer;
}

.materials-gallery-empty {
    color: #8c8f94;
    font-size: 16px;
}

.materials-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .66);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.materials-action-buttons .action-button {
    flex-basis: calc((100% - 15px) / 2);
}

.materials-action-buttons .action-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.materials-download-group-switcher {
    margin-bottom: 18px;
}

.materials-single .prompt-content p:first-child {
    margin-top: 0;
}

.materials-single .prompt-content p:last-child {
    margin-bottom: 0;
}

.materials-guide-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.materials-commercial-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid #a7d7b4;
    border-radius: 999px;
    background: #edf8f0;
    color: #18783a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 768px) {
    .materials-action-buttons {
        flex-direction: row;
    }

    .materials-action-buttons .action-button {
        min-width: 0;
    }

    .materials-gallery-navigation .nav-button {
        width: 42px;
        height: 42px;
    }

    .materials-guide-row {
        flex-wrap: wrap;
    }
}
