/*
    Copyright (c) 2024 Mostafa Sabry
    https://github.com/DoomAccount/masonry-filter-layout
    All rights reserved.
    This code is released under the [MIT] license.
    You can freely use and modify it for personal or commercial purposes, as long as you provide credit to the original author.
 */
/*-----------------------------------
all elements
-----------------------------------*/
:root {
  --color-black: #1e2024;
  --color-black-2: #181818;
  --color-primary: #f25749;
  --color-light: #fff;
  --color-1: #d7dbdf;
  --color-2: rgba(241, 241, 241, 20%);
  --color-3: #4f5659;
  --color-4: #efd8c9;
  --color-5: #e9ecf2;
}

* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
  text-rendering: geometricPrecision;
}
*:after, *:before {
  transition-property: all;
  transition-duration: 0.2s;
  transition-delay: 0s;
  transition-timing-function: linear;
  box-sizing: border-box;
}
* ::-moz-selection {
  background: var(--color-3);
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
}
* ::selection {
  background: var(--color-3);
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
}

/*-----------------------------------
html & body
-----------------------------------*/
html {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-kerning: none;
  font-family: var(--font-family-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

html,
body {
  font-size: var(--body-xs);
  background-color: var(--color-light);
  color: var(--color-black);
  height: 100vh;
  overflow-x: hidden !important;
}

/*
    File: _filter_masonry.scss
    Description: This file defines the styles for filter buttons and the masonry grid layout. It includes animations for button interactions and grid item visibility.

    Key Features:
    - **Filter Buttons**: The `.filter-buttons` class creates a layout for the filter buttons, which are displayed as a column by default and switch to a row layout on tablet screens.
        - **Button Styling**: Each button is styled with padding, a subtle initial opacity, and a hover effect that increases opacity and adds a horizontal line under the button.
        - **Hover and Active States**: When hovered or activated, the button's opacity increases, and the underline expands. Additionally, icons (images or SVGs) inside the buttons are animated to move slightly and become visible.
        - **Responsive Layout**: On tablet screens, the filter buttons switch from a vertical to a horizontal layout with more space between them, making the interface cleaner on larger screens.
        - **Icon Styling**: The icons within the buttons (either `img` or `svg`) are initially hidden with zero opacity. When the button is hovered over or active, the icons fade in and move to the right.

    - **Masonry Layout**: The `.have-filter-masonry` class controls the grid layout of filterable items.
        - **Grid Items**: Each `.grid-item` has transition effects for opacity, scaling, and positioning. The `.active` class ensures items are visible and scaled normally, while the `.hidden` class hides them by scaling them down and fading them out.
        - **Smooth Transitions**: The grid items have smooth transitions on the `opacity`, `transform`, `left`, and `top` properties, ensuring a visually appealing effect when items are shown or hidden.

    Responsive Design:
    - **screen_tablet**: On tablet screens, the filter buttons switch to a horizontal layout, with increased space between them to fit better on wider screens.

    Key Elements:
    - **.filter-buttons**: Container for the filter buttons, with individual buttons that change appearance on hover and when active.
    - **.grid-item**: Individual items in the masonry grid layout that transition between visible and hidden states based on filter actions.
    - **.filter-masonry**: Container for the masonry grid, which holds all the grid items.

    Media Queries:
    - **screen_tablet**: Modifies the button layout from vertical to horizontal and adjusts icon sizes for better responsiveness on tablet-sized screens.
*/
.filter-buttons {
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  border-bottom: 1px solid #181818;
}
@media only screen and (min-width: 768px) {
  .filter-buttons {
    flex-flow: row;
  }
}
.filter-buttons button {
  background-color: transparent;
  width: fit-content;
  block-size: fit-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: fit-content;
  block-size: fit-content;
  padding-bottom: 8px;
  position: relative;
  cursor: pointer;
  margin-right: 0px;
  margin-bottom: 20px;
  opacity: 0.5;
  color: var(--color-black);
  transition: all 0.2s ease-in-out;
  font-size: clamp(20px, 2vw, 36px);
  line-height: 112%;
  border: none;
}
@media only screen and (min-width: 768px) {
  .filter-buttons button {
    padding-bottom: 16px;
    margin-right: 60px;
  }
  .filter-buttons button:last-of-type {
    margin-right: 0;
  }
}
.filter-buttons button::after {
  content: "";
  width: 0%;
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #fff;
}
.filter-buttons button:hover, .filter-buttons button.active {
  opacity: 1;
}
.filter-buttons button:hover::after, .filter-buttons button.active::after {
  width: calc(100% + 15px);
}
@media only screen and (min-width: 768px) {
  .filter-buttons button:hover::after, .filter-buttons button.active::after {
    width: calc(100% + 25px);
  }
}
.filter-buttons button:hover img,
.filter-buttons button:hover svg, .filter-buttons button.active img,
.filter-buttons button.active svg {
  transform: translate(20px, -3px);
  opacity: 1;
  transition: all 0.2s ease-in-out;
}
@media only screen and (min-width: 768px) {
  .filter-buttons button:hover img,
  .filter-buttons button:hover svg, .filter-buttons button.active img,
  .filter-buttons button.active svg {
    transform: translate(25px, -5px);
  }
}
.filter-buttons button span {
  font-weight: 500;
}
.filter-buttons button img,
.filter-buttons button svg {
  width: 12px;
  height: 12px;
  transition: all 0.2s ease-in-out;
  margin-top: 0px;
  margin-left: 5px;
  transform: translate(0px, 0px);
  opacity: 0;
  z-index: -1;
  position: absolute;
}
@media only screen and (min-width: 768px) {
  .filter-buttons button img,
  .filter-buttons button svg {
    width: 20px;
    height: 20px;
    margin-left: 10px;
  }
}

.have-filter-masonry .filter-masonry {
  position: relative;
  width: 100%;
}
.have-filter-masonry .filter-masonry .grid-item {
  transition: opacity 0.2s linear, transform 0.3s linear, left 0.5s linear, top 0.5s linear;
  overflow: hidden;
  width: 100%;
  padding: 30px;
}
.have-filter-masonry .filter-masonry .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.have-filter-masonry .filter-masonry .grid-item.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s linear, transform 0.3s linear, left 0.5s linear, top 0.5s linear;
}
.have-filter-masonry .filter-masonry .grid-item.hidden {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, left 0s ease-out, top 0s ease-out;
}/*# sourceMappingURL=main.css.map */