/*
    I will move these `figure` classes and selectors to a separate CSS file 
    so that static pages (like the landing page and a User Guide page) can 
    make use of them. I'll put it in `shared/css/`. This file can include it.
*/

/*
    Classes to size and position <figure> elements (images and video).
    `parseMediaShortCodes` in 'cms/engine.php' converts tags like "left",
    "medium" and "wrap" into a combined class attribute for the <figure> element 
    it produces.
        Note: I'm not sure that the parsing mentioned above is working. It
    works if you just add a `class="..."` to the shortcode, but if just put
    tags as suggested above, they don't seem to get added to a "class" property.
*/

/* Size classes */

.figure-small {
    width: 33%;
}

.figure-medium {
    width: 60%;
}

.figure-large {
    width: 100%; /* Fills the entire parent element horizontally */
}

/* Alignment classes */
.figure-left {
    margin-left: 0;
    margin-right: auto;
}

.figure-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.figure-right {
    margin-left: auto;
    margin-right: 0;
}

/* Text wrapping classes */
.figure-left.figure-wrap {
    float: left;
    margin-left: 0;
    margin-top: 0;
    margin-right: 1em;
    margin-bottom: 1em;
}

.figure-right.figure-wrap {
    float: right;
    margin-right: 0;
    margin-top: 0;
    margin-left: 1em;
    margin-bottom: 1em;
}

/* Border and shadow classes */
.figure-border {
    border: 1px solid lightgrey;
}

.figure-shadow {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}

/* Border to mimic an iPhone for screen-recording videos */
.figure-phone {
    border-radius: 30px; /* Rounded corners */
    overflow: hidden; /* Ensures the video fits within the rounded corners */
    background-color: black; /* Black border color */
    padding: 8px; /* Adjust padding to simulate iPhone's black bezel */
    border: 2px solid #505050; /* Thin dark grey border for the iPhone case */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}
.figure-phone video {
    border-radius: 20px; /* Inner video rounded corners */
}