.frontend-section {
    padding: 0 12% 50px;
}

.frontend-header {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: #121010;
    color: white;
    padding: 1rem;
}

.frontend-header-button {
    background-color: transparent;
    border: none;
    color: white;
    border-radius: 25px;
    cursor: default;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    position: relative;
}

.frontend-header-button .header-icon {
    background: white;
    color: #121010;
    font-family: "DekkerIcons", Helvetica, Arial, sans-serif;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frontend-header-button .header-icon:hover {
    background: #ddd;
}

.frontend-header-button .header-icon.active {
    background: orange;
    color: white;
}

.frontend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1200px) {
    .frontend-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 2rem 0;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .frontend-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 0;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 800px) {
    .frontend-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 2rem 0;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .frontend-header {
        flex-direction: column;
        gap: 1rem;
    }
}

.frontend-grid-container {
    flex: 1;
    min-width: 0;
    background: white;
    height: 750px;
    overflow-y: scroll;
    padding: 50px 2% 50px;
}

.frontend-card {
    position: relative;
}

.frontend-card-image-wrapper {
    position: relative;
    min-width: 0;
}

.frontend-card-image-wrapper:hover {
    cursor: pointer;
}

.frontend-card-text {
    background: #ebeaea;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: black;
    min-height: calc(2 * 0.9rem * 1.4 + 2rem);
}

.frontend-card-text span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}

.frontend-card-image-container {
    height: 245px;
    overflow: hidden;
}

.frontend-card img {
    background: white;
    width: 100%;
    height: 245px;
    object-fit: contain;
    display: block;
}

.frontend-section .icon-circle {
    font-family: "DekkerIcons", Helvetica, Arial, sans-serif;
    background: rgba(255, 255, 255, 0.6);
    color: #444;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.frontend-section .icon-circle:hover {
    background: #12101060;
    color: white;
    border-color: transparent;
}

.frontend-section .frontend-card.selected .check-icon {
    background: orange;
    border-color: orange;
    color: white;
    opacity: 1;
}

.frontend-section .check-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    pointer-events: auto;
    opacity: 0;
}

.frontend-section .frontend-card:hover .check-icon {
    opacity: 1;
}

.frontend-section .copyright-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #444;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    pointer-events: auto;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frontend-section .copyright-icon:hover {
    background: #12101060;
    color: white;
    border-color: transparent;
}

.frontend-section .copyright-popup {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 0;
    background: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 175px;
}

.frontend-section .card-hover-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.frontend-section .frontend-card:hover .card-hover-icons {
    opacity: 1;
}

.frontend-section .card-hover-icons span {
    position: relative;
}

.frontend-section .card-hover-icons span .icon-circle {
    position: relative;
    z-index: 10;
}

.frontend-section .embed-dropdown,
.frontend-section .download-dropdown {
    color: black;
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    padding: 0.5rem;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.frontend-section .embed-dropdown button,
.frontend-section .download-dropdown select {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f5f5f5;
}

.frontend-section .embed-dropdown button:hover {
    background: #e0e0e0;
}

.frontend-section .card-select, .card-select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0;
}

.frontend-card-image-container:hover .card-select {
    opacity: 1;
}

.frontend-section i {
    font-size: 14px;
}