/* Alexrivera.vegas—neilmclean.com—portfolio code */
/* Picture Player Class */
/* Copyright 2025 Estebagel */

/* General styles for the picture gallery container */
.picture-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px; /* Consistent spacing between items */
    /*background-color: #f9f9f9;*/ /* Optional: Add a background color */
}

/* Horizontal layout for desktop */
@media screen and (min-width: 768px) {
    .picture-gallery {
        flex-direction: row;
        height: 100%;
    }

    .picture-container {
        flex: 0 0 auto;
        width: auto; /* Fixed width for desktop */
        height: 100%;
        padding: 10px;
    }

    .picture-wrapper {
        height: 100%; /* Fill the container height */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Ensure no overflow from images */
    }
}

/* Vertical layout for mobile */
@media screen and (max-width: 767px) {
    .picture-gallery {
        flex-direction: column;
        align-items: center;
        height: auto; /* Allow height to adjust on mobile */
    }

    .picture-container {
        width: 100%; /* Full width on mobile */
        padding: 5px 0; /* Consistent padding with video gallery */
    }

    .picture-wrapper {
        height: auto; /* Allow height to adjust */
    }

    .picture-container img {
        width: 100%; /* Full width on mobile */
        height: auto; /* Maintain aspect ratio */
    }
}

/* Image styling */
.picture-container img {
    width: 100%; /* Fill the container width */
    height: 100% !important; /* Maintain aspect ratio */
    max-width: none; /* Override any max-width restrictions */
    object-fit: contain; /* Ensure the entire image is visible */
}

/* Title and description */
.picture-container h3 {
    font-size: 2em; /* Consistent with video titles */
    font-weight: bold;
    margin: 10px 0 5px 0;
    padding-left: 10px; /* Consistent with video titles */
}

.picture-container p {
    font-size: 1.1em; /* Consistent with video descriptions */
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 15px; /* Consistent with video descriptions */
}

/* Basic Responsiveness */
@media screen and (max-width: 768px) {
    .picture-container h3 {
        font-size: 1.8em; /* Consistent with video titles */
    }

    .picture-container p {
        font-size: 1em; /* Consistent with video descriptions */
    }
}

/* Items added by URL (Galleries → "Use a URL instead").
   Scoped to the --link modifiers so plain Drive images, which never carry
   them, render exactly as before. */

/* Players: 16:9, sized from the strip's height like the images are. */
.picture-container--video .picture-embed {
    display: block;
    height: 100%;
    width: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* In a scrolling strip, a clear shield lies over each player so the mouse
   wheel reaches the strip instead of YouTube — before and after the video
   starts. Holes let the player's own controls through:
     - the middle, where the play button is;
     - the bottom-right corner, where YouTube's player puts fullscreen, above
       the control bar;
   and the shield stops short of the bottom, clearing the progress bar and the
   control bar. The holes are cut with clip-path, which also decides what the
   pointer hits. Added by js/estebagel-scroll.js; without it the player is
   fully interactive. Tune per site with the custom properties. */
.picture-wrapper--shielded {
    position: relative;
}

.picture-shield {
    --hole-x: var(--estebagel-player-hole-x, 35%);
    --hole-y: var(--estebagel-player-hole-y, 30%);
    --corner-w: var(--estebagel-player-corner-width, 80px);
    --corner-h: var(--estebagel-player-corner-height, 50px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--estebagel-player-controls, 80px);
    cursor: pointer;
    /* evenodd: the outline, then each hole as its own loop, returning to
       0 0 between them (those return trips enclose nothing). */
    clip-path: polygon(evenodd,
        0 0, 100% 0, 100% 100%, 0 100%, 0 0,
        var(--hole-x) var(--hole-y),
        calc(100% - var(--hole-x)) var(--hole-y),
        calc(100% - var(--hole-x)) calc(100% - var(--hole-y)),
        var(--hole-x) calc(100% - var(--hole-y)),
        var(--hole-x) var(--hole-y),
        0 0,
        calc(100% - var(--corner-w)) calc(100% - var(--corner-h)),
        100% calc(100% - var(--corner-h)),
        100% 100%,
        calc(100% - var(--corner-w)) 100%,
        calc(100% - var(--corner-w)) calc(100% - var(--corner-h)),
        0 0);
}

/* Captions sit under the media. The media takes a fixed share of the strip's
   height rather than whatever the captions leave: the item's width is worked
   out from the media's height, and a share that depended on the captions
   would be measured before they were laid out, leaving a gap beside it. */
.picture-container--captioned {
    display: flex;
    flex-direction: column;
}

.picture-container--captioned .picture-wrapper {
    flex: 0 0 auto;
    height: var(--estebagel-caption-media-height, 80%);
}

/* As wide as the media, never wider: zero width that grows to fill. Long
   descriptions scroll inside the room left under the media. */
.picture-caption {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 0;
    min-width: 100%;
    padding-top: 10px;
    /* The horizontal strip's containers set nowrap; captions must wrap. */
    white-space: normal;
    overflow-wrap: anywhere;
}

/* js/estebagel-link-captions.js measured the captions and set the media's
   height to what they leave; the captions keep their natural height. */
.picture-container--fitted .picture-caption {
    flex: 0 0 auto;
}

.picture-container .picture-caption h3,
.picture-container .picture-caption p {
    padding-left: 0;
    margin: 0 0 4px 0;
}

/* The last line sits on the strip's bottom edge, level with the pictures. */
.picture-container .picture-caption > :last-child {
    margin-bottom: 0;
}

.picture-container .picture-caption__title {
    font-size: 1.4em;
    line-height: 1.25;
}

.picture-container .picture-caption__subtitle {
    font-size: 1em;
    font-weight: 600;
    opacity: 0.85;
}

.picture-container .picture-caption__description {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.8;
}

@media screen and (max-width: 767px) {
    .picture-container--video .picture-embed {
        width: 100%;
        height: auto;
    }

    .picture-container--captioned .picture-wrapper {
        height: auto;
    }

    .picture-caption {
        flex: 0 0 auto;
        overflow-y: visible;
    }

    .picture-container .picture-caption__title {
        font-size: 1.25em;
    }
}



/* Delete this. */
/**
body {
    background-color: rgb(20, 20, 20) !important;
}

.elementor-142 .elementor-element.elementor-element-50c9202e:not(.elementor-motion-effects-element-type-background), .elementor-142 .elementor-element.elementor-element-50c9202e > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: rgb(20, 20, 20) !important;
}

.picture-container {
    padding: 0px !important;
}

.picture-gallery {
    gap: 20px !important; 
    background-color: rgb(20, 20, 20) !important;
}

a {
    color: rgb(20, 20, 20) !important;
}
    */