/*variables*/
:root{
  --card-bg-color: #edede9;
  --main-bg-color: #f6eafe;
  --primary-color: #e3d5ca;
  --title-color: #ad9284;
  --border-color: #d5bdaf;
}

/*base*/


@font-face {
font-family: windows;
src: url(https://dl.dropbox.com/s/cn0l1yjacta4whv/W95FA.otf);
}
 
body{
  background-image: url('/images/backgrounds/SB128.JPG');
  background-attachment: fixed;
  font-family: windows;
  box-sizing: border-box;
}


/*fonts param*/

a{
  color:var(--title-color);
  text-decoration: none;
}

.topbar a{
  font-weight:bold;
  font-size:1.3em;
}

li{
  list-style-image: url('/images/petit/e2fbd1bd.gif');
}

p{
  color:var(--title-color);
  line-height: 1.5em;
}

.bold{
  font-weight:bold;
}

h1,h2,h3,nav a{
  color: var(--title-color);
  margin:0;
}

h4{
  color:var(--border-color);
}

h1{
  font-size: 2em;
  margin: 0.5em 0 0.5em 0;
}

h3,#recentpostlistdiv h2{
  font-size:1.1em;
  display : block;
  background-color: var(--primary-color);
  padding:0.4em 0 0.4em 1em;
  border-radius:5px 5px 0 0;
}



/*scrollbar param*/
::-webkit-scrollbar{
  scrollbar-width: none;
}

/*containers settings*/


.container-all,.container-all-posts{
  width:900px;
  margin:auto;
  margin-top:60px;
  margin-bottom:60px;
  background-color: var(--main-bg-color);
}

.container-all-posts{
   padding:10px; 
}

.container-all{
  background-color:#FFFAFF;
  display:flex;
  flex-direction: column;
  gap:20px;
border: 4px solid;
border-image: url('border.png') 20 / 20px / 20px repeat;
}

.container-post{
  padding:50px;
}

/*grid*/
.content-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-column-gap: 10px;
grid-row-gap: 10px;
}

.cont-1 { grid-area: 1 / 1 / 3 / 2; }
.cont-2 { grid-area: 1 / 5 / 4 / 6; }
.cont-3 { grid-area: 1 / 2 / 3 / 5; }
.cont-4 { grid-area: 3 / 1 / 4 / 2; }
.cont-5 { grid-area: 4 / 1 / 5 / 2; }
.cont-6 { grid-area: 3 / 2 / 5 / 4; }
.cont-7 { grid-area: 3 / 4 / 4 / 5; }
.cont-8 { grid-area: 4 / 4 / 5 / 6; }



.grid-icon{
  display:grid;
  grid-template-columns: repeat(6,1fr);
  grid-auto-columns: 40px;
  gap:5px;
}
/*nav components settings*/
.card,nav{
    border-radius:5px;
    border: var(--border-color) solid 2px;
}

.card,.sidebar{
    background-color:var(--card-bg-color);
}

.profile-picture{
  float: left;
  width:50%;
  margin: 4px 4px 4px 0;
  border-radius:6px;
}

.container-card-content{
  padding:8px;
}

.topbar{
  background-color:var(--primary-color);
  padding:16px;
  height:fit-content;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.navlink{
  display: block;
}


#recentpostlistdiv ul{
    overflow: scroll;
    height:400px;

}






/*blog pre-made class*/


hr {
  border: solid var(--primary-color);
  border-width: 2px 0 0 0;
}

img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}





/*POST LIST STYLE*/
#postlistdiv ul{
  font-size: 1.2em;
  padding: 0;
}


.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}





/*Gallery*/

.art-content{
    padding:50px;
}

.grid-gallery {  
  margin:auto;
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
  grid-auto-columns:1fr;
  grid-auto-rows: 280px;
  grid-auto-flow: row;
  grid-template-areas:
    ". . ."
    ". . ."
    ". . .";
}


.item {
  position: relative;
  overflow: visible; /* IMPORTANT */
}

.item img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.item:hover img {
  position: fixed;           
  top: 50%;                  
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 70vw;
  max-height: 70vh;
  object-fit: contain;
  z-index: 9999;
  cursor: zoom-out;
}

