/* ============================================
   GEMARIX SLIDESHOW SYSTEM
   ============================================ */

/* Base container */
.gx-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a3a28;
    border-radius: 6px;
}

/* Stacked slides — only .active is visible */
.gx-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    cursor: zoom-in;
}

.gx-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gx-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero slideshow — fills photo column */
.gx-hero-slideshow {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .gx-hero-slideshow { aspect-ratio: 3 / 2; }
}

/* Section slideshows (apps, finishes) */
.gx-section-slideshow {
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border-radius: 6px;
    margin: 16px 0;
}

/* Caption */
.gx-slideshow-caption {
    text-align: center;
    margin-top: 10px;
    font-family: 'Cormorant', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: #666;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

/* Dot indicators */
.gx-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    flex-wrap: wrap;
    padding: 0 8px;
}

.gx-slideshow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(62,122,133,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.25s;
}

.gx-slideshow-dot:hover {
    background: rgba(62,122,133,0.55);
    transform: scale(1.3);
}

.gx-slideshow-dot.active {
    background: #3E7A85;
    transform: scale(1.4);
}

/* Paused badge */
.gx-slideshow.paused::after {
    content: '⏸';
    position: absolute;
    top: 10px; right: 12px;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    z-index: 5;
    pointer-events: none;
}

/* Application icon buttons row */
.gx-apps-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .gx-apps-row { grid-template-columns: repeat(3, 1fr); }
}

.gx-app-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: white;
    border: 1.5px solid #e8e0d0;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}

.gx-app-button:hover {
    border-color: #3E7A85;
    color: #3E7A85;
}

.gx-app-button.active {
    background: #3E7A85;
    border-color: #3E7A85;
    color: white;
}

.gx-app-button svg { width: 22px; height: 22px; }

/* Finish swatch selector row */
.gx-finishes-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .gx-finishes-row { grid-template-columns: repeat(2, 1fr); }
}

.gx-finish-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    transition: color 0.2s;
}

.gx-finish-button:hover { color: #3E7A85; }
.gx-finish-button.active { color: #3E7A85; }

.gx-finish-swatch-btn {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gx-finish-button:hover .gx-finish-swatch-btn {
    transform: translateY(-2px);
}

.gx-finish-button.active .gx-finish-swatch-btn {
    border-color: #3E7A85;
    transform: translateY(-2px);
}

/* ============================================
   THUMBNAIL STRIP
   ============================================ */
.gx-slideshow-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .gx-slideshow-thumbs { gap: 4px; }
}

.gx-thumb-wrap {
    display: flex;
    flex-direction: column;
}

.gx-slideshow-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
    background: #f5f0e6;
}

.gx-slideshow-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(62,122,133,0.5);
}

.gx-slideshow-thumb.active {
    border-color: #3E7A85;
    transform: translateY(-2px);
}

.gx-slideshow-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gx-slideshow-thumb:hover img {
    transform: scale(1.05);
}

.gx-thumb-label {
    display: block;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding: 4px 0 0;
}

.gx-slideshow-thumb.active + .gx-thumb-label {
    color: #3E7A85;
    font-weight: 500;
}

/* ============================================
   MINES / QUARRY GALLERY (Origin section)
   ============================================ */
.gx-mines-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0 6px;
}

@media (max-width: 640px) {
    .gx-mines-gallery { grid-template-columns: 1fr; }
}

.gx-mines-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    cursor: zoom-in;
}

.gx-mines-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gx-mines-caption {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}
