/*
Theme Name: Dwebz
Theme URI: https://dwebz.fr
Author: Visiscope
Author URI: https://visiscope.fr
Description: 
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dwbz
*/

/*** HERO ***/
.hero-section {
  margin: var(--space-l) 0 var(--space-m) 0;
  width: 40%;
}
.hero-section.mh {
  min-height: 300px; 
  margin-top: 80px;
}
.hero-section.fh {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 0 8rem 0;
}
.hero-section h1 {}

.hero-section h2 {
  color: var(--accent-col);
}
.hero-surtitle {
  margin-bottom: var(--mb10);
  margin-left: 7px;
}

/*** GALERIE ***/
.gallery-post {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
.gallery-post:hover {}
.gallery-post:hover .gallery-thumbnail img {
}
.gallery-post:hover h4 a {
  color: var(--accent-col);
}
.gallery-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}
.gallery-post:hover::before {}
.gallery-post:hover h4 a {
  color: var(--accent-col);
}
.gallery-post a,
.gallery-post .meta a,
.gallery-post .vote-button button {
  position: relative;
  z-index: 2;
}
.gallery-post .vote-button button {
  background: red;
  width: 20px;
  height: 20px;
  border: none;
}
.gallery-post-infos {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.gallery-post-thumbnail img {
  max-width: 100%;
  height: auto;
  display: block; 
}
.gallery-post h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
}
.gallery-post .excerpt p {}
.recent-gallery-post {
  margin-top: 4rem;
}
.category {
  font-size: 14px;
}
.category a {
  color: var(--grey-col);
}
.category a:hover {
  color: var(--b-col);
}
#gallery-container.loading {
  opacity: 0.5;
  pointer-events: none;
}
.gallery-layout {
  display: flex;
  gap: 60px;
}
.gallery-layout .filters {
  flex: 1;
  max-width: 210px;
}
.gallery-layout .content {
  flex: 3;
}
.gallery-thumbnail {
  width: 100%;
  height: 280px;
}
.gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: var(--br-s); 
  object-fit: cover;
}
.meta {
  /* display: inline-block; */
  display: flex; 
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--secondary-font);
  font-size: var(--fs-xs);
}
.meta a {
  font-size: var(--fs-nm);
  color: var(--b-col);
}
.meta a:hover {
  color: var(--accent-col);
}
.meta.categories a,
.meta.sectors a,
.meta.styles a {
}
.meta.colors-fonts {
  display: block;
}
.meta.technologies {
  display: block;
}
.meta.creators {
  display: block;
}
.bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  font-size: var(--fs-xs);
}
.vote-button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.creator {
  display: flex;
  align-items: center;
}

/*** FILTERS ***/
.filters {
  width: 210px;
  position: relative;
  display: none;
}
.filter-section {}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #000;
  padding: 10px 0;
}
.filter-header:hover {
  color: var(--accent-col);
}
.filter-body {
  padding: 10px;
  background-color: #fff;
}
.filter-body label {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  cursor: pointer;
}
.filter-body input {
  margin-right: 10px;
}
.toggle-icon {
  font-size: 16px;
}
.filter-count {
  font-weight: normal;
  color: var(--accent-col);
}
.filter-link {
  color: #000;
  font-size: var(--fs-s);
  font-weight: bold;
  padding: 5px 10px;
  margin-bottom: var(--mb-col);
}
.filter-link:hover {
  text-decoration: none;
  color: var(--accent-col);
}
.filter-link.active {
  text-decoration: underline;
  color: var(--accent-col);
  opacity: 1;
}

/*** LEXIQUE ***/
.lexicon-post {
  border: 1px solid #d9d9d9;
  padding: 1rem 2rem 1.8rem 2rem;
}

/* POST - META ***/
.post-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}
.post-meta span {}
.post-meta a {
  color: #777;
}
.post-meta a:hover {
  text-decoration: underline;
}