/* sehnua-book.css */
/* This file contains the CSS styles for sehnua design website. */

@import url('sehnua.css');

.thumbnail-category {
    visibility: hidden;
    width: 0;
    height: 0;
}

#gallery {
    margin: 0;
    padding: 0 0 100px 0;
}
/*.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 25px;
    /* padding: 20px; */
/*}*/

/* Vignette */
.thumbnail-container {
    display: inline-block;
    position: absolute;
    /* transition: transform 0.15s ease-out, opacity 0.15s ease-out; */
    transition: all 0.3s ease-out;
    /* transition-delay: 1s; */
    margin: 0;
    padding: 0;
    opacity: 1.0;
}
.thumbnail {

    background: white;
    overflow: hidden;

    transform: translateY(-170px) rotate3d(1, 0, 0, 10deg) translateY(170px);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-out;
    cursor: pointer;

    margin: 0 10px 20px 10px;
    /*width: 330px;*/

    border-style: solid;
    border-color: #888;
    border-width: 0 0 3px 0;
    border-radius: 15px 0 0 0;
}
.thumbnail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 15px 0 40px 0;
    box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.1);

    opacity: 0.9;
    transition: all 0.3s ease-out;
}
.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 40px 0;
    box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
}
.thumbnail-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    opacity: 0.8;
    transition: all 0.3s ease-out;
}
.thumbnail-subtitle {
    font-size: 0.9rem;
    color: #999;
    opacity: 0.0;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    transition: all 0.3s ease-out;
    height: 35px;
}
.thumbnail-content {
    padding: 20px;
}
/* Vignette hover */
.thumbnail:hover {
    transform: translateY(-170px) rotate3d(1, 0, 0, 0) translateY(170px) !important;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-out;
}
.thumbnail:hover .thumbnail-image {
    opacity: 1.0;
    transition: all 0.2s ease-out;
}
.thumbnail:hover .thumbnail-title {
    opacity: 1.0 !important;
    transition: all 0.2s ease-out;
}
.thumbnail:hover .thumbnail-subtitle {
    opacity: 1.0 !important;
    filter: blur(0px) !important;
    -webkit-filter: blur(0px) !important;
    transition: all 0.2s ease-out;
}
/* Vignette active */
.thumbnail:active {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    border-width: 3px 0 0 0;
    transition: all 0.0s ease-out;
}
/* Vignette out */
.thumbnailOutUp {
    opacity: 0.05 !important;
}

/* Menu position 1 */
#menu {
    z-index: 1000;
    position: fixed;
    margin: auto;
    top: 180px;
    left: 50%;
    margin-left: -490px;
    width: 960px;
    padding: 5px 10px;
    margin-bottom: 10px;
    text-align: center;
    /* transition: all 0.3s ease; */
    /*border:rgba(0, 0, 0, 0.1) solid 1px;*/
}
.item {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 13pt;
    color: #000;
    cursor: pointer;

    border-style: solid !important;
    border: transparent solid 2px;
    border-radius: 15px;

    transition: all 0.3s ease;
}
.item:hover {
    background-color: rgba(255.0, 255.0, 255.0, 0.3);
    border: #ccc solid 2px;

    transition: all 0.1s ease !important;
}
.itemSelected, .itemSelected:hover {
    background-color: rgba(255.0, 255.0, 255.0, 0.7);
    border-style: solid !important;
    border: #000 solid 2px;
}
/* Menu position 2 */
@keyframes menuGo2 {
  0%    {opacity: 1.0;top: 180px;}
  70%   {opacity: 0.0;top: 180px;}
  80%   {opacity: 0.0;top: -100px;}
  100%  {opacity: 1.0;top: -5px;}
}
@keyframes menuGo2b {
  0%    {opacity: 1.0;top: 150px;}
  70%   {opacity: 0.0;top: 150px;}
  80%   {opacity: 0.0;top: -100px;}
  100%  {opacity: 1.0;top: -5px;}
}
@keyframes itemGo2 {
  0%    {border-width: 2px;border-radius: 15px;font-size: 13pt;top:0}
  70%   {border-width: 2px;border-radius: 15px;font-size: 11pt;top:-10px}
  80%   {border-width: 0 2px 2px 2px;border-radius: 0 0 15px 15px;font-size: 11pt;}
  100%  {border-width: 0 2px 2px 2px;border-radius: 0 0 15px 15px;font-size: 11pt;}
}
@keyframes itemGo2b {
  0%    {border-width: 2px;border-radius: 15px;top:0}
  70%   {border-width: 2px;border-radius: 15px;top:-10px}
  80%   {border-width: 0 2px 2px 2px;border-radius: 0 0 15px 15px;}
  100%  {border-width: 0 2px 2px 2px;border-radius: 0 0 15px 15px;}
}
.menu2 {
    top: -5px !important;
    transition-delay: 0.4s;
    /* text-align: right !important; */

    animation-name: menuGo2;
    animation-duration: 0.5s;
}
.menu2 .item {
    position: relative;
    font-size: 11pt;
    border-radius: 0 0 15px 15px;
    border-width: 0 2px 2px 2px;

    transition-delay: 0.0s;

    animation-name: itemGo2;
    animation-duration: 0.5s;
}
/* .menu2 .item:hover {
    transition-delay: 0.0s;
}*/
.menuSeparator {
    color: #ccc;
    font-weight: bold;
}

/* DESKTOP 800>1150 */
@media (min-width: 800px) and (max-width: 1150px) {
    /* Menu */
    #menu {
        top: 150px;
        width: 630px !important;
        margin-left: -325px !important;
    }
    .menu2 {
        animation-name: menuGo2b;
    }
    .menu2 .item {
        animation-name: itemGo2b;
    }
    .item {
        font-size: 10pt;
    }
}

/* SMARTPHONE */
@media (max-width: 800px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(1fr, 1fr));
    }
    /* Vignette */
    .thumbnail {
        /* transform: translateY(-170px) perspective(50cm) rotate3d(1, 0, 0, 0deg) translateY(170px) !important; */
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
        border-color: #888;
        border-width: 0 0 3px 0;
        opacity: 1.0 !important;
        filter: blur(0px) !important;
        -webkit-filter: blur(0px) !important;
    }
    .thumbnail-image {
        opacity: 1.0 !important;
        transition: all 0.3s ease-out;
    }
    .thumbnail:hover .thumbnail-image img {
        transform: inherit !important;
    }
    .thumbnail-title {
        opacity: 1.0 !important;
    }
    .thumbnail-subtitle {
        opacity: 1.0 !important;
        filter: blur(0px);
        -webkit-filter: blur(0px);
    }
    .thumbnail:hover .thumbnail-subtitle {
        opacity: 1.0;
        transition: all 0.3s ease-out;
    }
    /* .thumbnailOutUp {
        opacity: 0.05 !important;
    } */
    .thumbnailOutBottom {
        transform: translateY(-170px) perspective(50cm) rotate3d(1, 0, 0, 45deg) translateY(170px) !important;
        opacity: 0.7 !important;
        filter: blur(1px) !important;
        -webkit-filter: blur(1px) !important;
    }
    .thumbnailOutBottom:hover {
        transform: translateY(-170px) perspective(50cm) rotate3d(1, 0, 0, 45deg) translateY(170px) !important;
    }
    /* Menu */
    #menu {
        position: fixed !important;
        top: inherit !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        padding: 20px 0 !important;
        margin: 0 !important;

        background: linear-gradient(0deg, #fff, transparent) !important;
    }
    .item {
        font-size: 9pt;
    }
}