/*
Theme Name: Sara Beyler Theme
Theme URI: sarabeyler.com.com
Description: Tema nuevo para el proyecto Sara Beyler
Author: Maria Lara
Author URI: maaarialara.com
Version: 1.0
*/

/* CSS RESET */

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

:root {
    --main-bg-color: rgb(255, 255, 255);  
    --main-text-color: #1d1d1d; 
    --light-grey: rgb(191, 191, 191);
    --main-font: serif;
    --font-size: 14px;

    --pad-s: 3rem;
}


/* my css */

*, *:after, *:before {
    box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 62.5%; 
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    font-family: var(--main-font); 
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

a {
    color: var(--main-text-color);
    text-decoration: none;
}

a:hover {
    color: var(--main-bg-color);
}

ul {
    padding-inline-start: 0;
}

li {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--main-font);
    font-size: var(--font-size);
    background: none;
    margin: 0;
    padding: 0;
}

::-moz-selection {
    color: rgb(255, 32, 221);
    background: transparent;
}

::selection {
    color: rgb(255, 32, 221);
    background: transparent;
}

/* clases */
.z-9 {
    z-index: 9;
}

.z-99 {
    z-index: 99;
}

.z-999 {
    z-index: 999;
}

.z-9999 {
    z-index: 9999;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

h1, h2, h3, a {
    font-family: var(--main-font);
    font-size: var(--font-size);
}

.center-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.balance {
    text-wrap-style: balance;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

/* COMING SOON */
.coming-soon-container h1 {
    font-size: var(--font-size);
}
.coming-soon-container h2 {
    font-size: var(--font-size);
    text-align: center;
    margin-top: 1rem;
}


/* ==========================
   CONTROLES COLUMNAS
========================== */

.masonry-controls {
    position: fixed;
    width: 100%;
    top: 1rem;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    /* background-color: white; */
    padding: 0 1rem;
}

.masonry-controls button {
    appearance: none;

    border: 0;
    /* background-color: rgba(221, 221, 221, 0.5); */

    padding: 4px 8px;

    font: inherit;
    font-size: var(--font-size);
    line-height: 1;

    cursor: pointer;
}


/* ==========================
   MASONRY
========================== */

.masonry {
    columns: var(--masonry-columns, 5);
    column-gap: var(--pad-s);
    padding: 5rem;
}

@media (width < 1024px) {
    .masonry {
        columns: var(--masonry-columns, 1);
    }
}


.masonry img,
.masonry video {
    display: block;

    width: 100%;
    height: auto;

    padding: 0;
    margin-bottom: var(--pad-s);
}

video {
    aspect-ratio: auto !important;
}

.masonry > img,
.masonry > video,
.masonry > a {
    break-inside: avoid;
}


/* Los enlaces no alteran el diseño */

.masonry .media-link {
    display: block;

    width: 100%;

    text-decoration: none;

    cursor: pointer;
}


/* Sin enlace = lightbox */

.masonry > img,
.masonry > video {
    /* cursor: cell; */
    cursor: nesw-resize;
}


/* ==========================
   LIGHTBOX
========================== */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    justify-content: center;
    align-items: center;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.95);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    cursor: auto;
}


.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.lightbox-image,
.lightbox-video {

    display: none;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 100%;

    object-fit: contain;

    margin-left: auto;
    padding: 0;

}


.lightbox-image.active,
.lightbox-video.active {
    display: block;
}

.lightbox-preview {
    display: none;
    position: fixed;
    z-index: 1;
    max-width: 100px;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .lightbox.preview-visible .lightbox-image {
        cursor: none;
    }

    .lightbox.preview-visible .lightbox-preview {
        display: block;
    }
}

/* ------------------------------    MEDIA Q       ------------------------------ */


/*BIG SCREEN*/
/* @media screen and (min-width: 1920px) {
      body, html{
          font-size: var(--font-size);
      }
  } */

/*DESKTOP RESPONSIVE*/
@media screen and (max-width: 1280px) {
    /**** GENERAL ****/
}


/*HOVER*/
@media screen and (min-width: 1024px) {

}

/*IPAD RESPONSIVE*/
@media screen and (max-width: 1020px) {
    :root {
        --pad-s: 1rem;
    }

    /**** GENERAL ****/

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }


.lightbox-image,
.lightbox-video {

    max-height: 90vh;
    margin: auto;

}

/* .masonry {
    column-gap: var(--pad-s);
    padding: 3rem var(--pad-s);
} */

.masonry {
    column-gap: 0;
    padding: 0;
}

.masonry img, .masonry video {
    /* margin-bottom: var(--pad-s); */
    margin-bottom: 0;
        padding: 0;
}

}


/*MOVILE RESPONSIVE*/
@media screen and (max-width: 650px) {

}
