/*!
Theme Name: Cosmos v1
Theme URI: https://topstrony.pl/
Author: Top Strony - Przemek
Author URI: https://topstrony.pl/
Description: Dedykowany motyw dla fotobudki
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cosmos
Tags: optymalizacja pod wyszukiwarki, animacje w GSAP
*/

/* Variables
------------------------------------------ */

:root {
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Poppins", sans-serif;
  --color-accent-1: goldenrod;
  --color-accent-2: goldenrod;
  --color-light-1: #fff;
  --color-light-2: #ddd;
  --color-dark-1: #101113;
  --color-dark-2: #17181b;
  --color-heading: #1d1a14;
  --color-text: #555;
}

.light {
  --color-accent-1: goldenrod;
  --color-accent-2: goldenrod;
  --color-light-1: #fff;
  --color-light-2: #ddd;
  --color-dark-1: #101113;
  --color-dark-2: #17181b;
  --color-heading: #1d1a14;
  --color-text: #555;
}

.dark {
  --color-accent-1: goldenrod;
  --color-accent-2: goldenrod;
  --color-light-1: #101113;
  --color-light-2: #17181b;
  --color-dark-1: #fff;
  --color-dark-2: #ddd;
  --color-heading: #fff;
  --color-text: #ddd;
}

.change-theme {
  display: inline-block;
  margin-left: 1em;
  padding-bottom: 13px;
  border: none;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.change-theme .moon {
  display: none;
}

.change-theme .sun {
  display: block;
}

.light .change-theme .moon {
  display: block;
}

.light .change-theme .sun {
  display: none;
}

.dark .change-theme .sun {
  display: block;
}

.dark .change-theme .moon {
  display: none;
}

/* Typography
------------------------------------------ */

.xl,
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  font-family: var(--font-secondary);
  font-weight: 300;
  color: var(--color-heading);
}

.xl {
  font-size: 3rem;
  line-height: 1.3;
}

h1,
.h1 {
  font-size: 2.3rem;
  line-height: 1.3;
}
h2,
.h2 {
  font-size: 1.9rem;
  line-height: 1.3;
}
h3,
.h3 {
  font-size: 1.6rem;
  line-height: 1.4;
}
h4,
.h4 {
  font-size: 1.3rem;
  line-height: 1.6;
}
h5,
.h5 {
  font-size: 1.1rem;
  line-height: 1.6;
}
h6,
.h6 {
  font-size: 1rem;
  line-height: 1.6;
}

p {
  font-family: var(--font-secondary);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
}

li {
  margin-bottom: 1em;
  line-height: 1.8;
  color: var(--color-text);
}

.bold {
  font-weight: 600;
}

.split-text .line {
  overflow: hidden;
}

@media (min-width: 767px) {
  .xl {
    font-size: 5rem;
  }

  h1,
  .h1 {
    font-size: 3rem;
  }
  h2,
  .h2 {
    font-size: 2.6rem;
  }
  h3,
  .h3 {
    font-size: 2.1rem;
  }
  h4,
  .h4 {
    font-size: 1.7rem;
  }
  h5,
  .h5 {
    font-size: 1.3rem;
  }
  h6,
  .h6 {
    font-size: 1rem;
  }
}

/* Spacing
------------------------------------------ */

.pt-xsmall {
  padding-top: 20px;
}

.pt-small {
  padding-top: 40px;
}

.pt-medium {
  padding-top: 60px;
}

.pt-large {
  padding-top: 90px;
}

.pt-xlarge {
  padding-top: 120px;
}

.pb-xsmall {
  padding-bottom: 20px;
}

.pb-medium {
  padding-bottom: 60px;
}

.pb-large {
  padding-bottom: 90px;
}

.pb-xlarge {
  padding-bottom: 120px;
}

.border-bottom {
  border-bottom: 1px solid var(--color-dark-2);
}

@media (min-width: 767px) {
  .pt-md-xlarge {
    padding-top: 120px;
  }
}
/* Background
------------------------------------ */

.main-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#fader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  pointer-events: none;
  background: var(--color-light-1);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation-duration: 200ms;
  animation-timing-function: ease-in-out;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#fader.fade-out {
  opacity: 0;
  animation-name: fade-out;
}

#fader.fade-in {
  opacity: 1;
  animation-name: fade-in;
}
html {
  background-color: var(--color-light-1);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--color-light-1);
  font-family: var(--font-secondary);
  background-color: var(--color-light-1);
  overflow-x: hidden;
}

.site {
  overflow: hidden;
}

main {
  display: block;
  min-height: 100vh;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  color: inherit;
  background-color: transparent;
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong,
.strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

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

html {
  box-sizing: border-box;
}

@media (min-width: 767px) {
  .border-top {
    border-top: 2px solid #9a9a9a6a;
  }
}

/* Button 
--------------------------------------------- */

.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background: var(--color-dark-1);
  color: var(--color-light-1);
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.cs-button span {
  font-size: 45px;
}

.cs-button:hover {
  background: var(--color-accent-1);
  color: #fff;
}

.tr-button {
  display: inline-block;
  padding: 1em 2em;
  margin-right: 1em;
  color: var(--color-dark-1);
  border: 1px solid #9a9a9a6a;
  border-radius: 50px;
  transition: 0.3s ease-in-out;
}
.tr-button:hover {
  background: var(--color-accent-1);
  color: #fff;
}

/* Links
--------------------------------------------- */
a {
  color: inherit;
}

a:visited {
  color: var(--color-accent-1);
}

a:hover,
a:focus,
a:active {
  color: var(--color-accent-1);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: var(--color-dark-1);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/* Site header
--------------------------------------------- */

.site-header {
  position: relative;
  padding-top: 40px;
  padding-bottom: 60px;
  z-index: 99999;
}

.home .site-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--color-light-1);
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.header-col-1 {
  width: auto;
}
.header-col-2 {
  width: 100%;
}

/* Logo
  --------------------------*/

.logo-wrap {
  margin-top: 13px;
  min-width: 200px;
}

/* Navigation
  --------------------------*/

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: var(--color-light-2);
  text-align: center;
  transition: 0.2s ease-in-out;
  z-index: -1;
}

.main-nav.active {
  opacity: 1;
  pointer-events: all;
}

.main-nav .menu {
  padding-left: 0;
  margin-bottom: 0;
}

.main-nav li {
  display: block;
}

.main-nav li a {
  font-size: 1.65rem;
  letter-spacing: 1px;
  color: var(--color-heading);
  transition: 0.2s ease-in-out;
}

.main-nav li a:hover {
  color: var(--color-accent-1);
}

.menu-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger-line {
  display: block;
  height: 2px;
  width: 21px;
  margin-bottom: 5px;
  background: var(--color-dark-1);
}

@media (min-width: 767px) {
  .logo-wrap {
    min-width: 300px;
    margin-top: 15px;
  }
  .main-nav {
    display: block;
    height: auto;
    position: relative;
    background: transparent;
    opacity: 1;
    pointer-events: all;
    text-align: end;
    z-index: 1;
  }
  .main-nav li {
    display: inline-block;
    margin-left: 2.2em;
  }

  .main-nav li a {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Splitting
---------------------------------------- */

.char {
  display: inline-block;
}

.xxl {
  margin-top: 0.3em;
  margin-bottom: 0;
  font-size: 15vw;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  mix-blend-mode: exclusion;
}

.handwrite {
  display: inline-block;
  margin-top: -1em;
  font-family: var(--font-handwrite);
  font-size: 8vw;
  font-weight: 300;
  color: #c19a5b;
}

.text-end {
  text-align: end;
}
.w-50 {
  width: 50%;
}
.w-60 {
  width: 60%;
}

.hero-img-wrap {
  margin-top: -12.5em;
  position: relative;
  z-index: -1;
}

/* Filters
------------------------------------

.wpc-filters-widget-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 30px
}

-------- */

.select2-container--default .select2-selection--single {
  background-color: var(--color-light-1) !important;
  border: 1px solid var(--color-dark-2) !important;
}

/* Archive posts
-------------------------------------------- */

.blog .post .wp-post-image {
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

/* Actors listing
-------------------------------------------- */

.listing-toggle-btn {
  padding: 1em 2.6em;
  margin-left: 1em;
  background-color: var(--color-light-2);
  color: var(--color-dark-1);
  border: none;
  line-height: 1;
  border-radius: 3px;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.listing-toggle-btn:hover,
.listing-toggle-btn.active {
  background-color: var(--color-accent-1);
  color: #fff;
}

.actors-list {
  display: none;
}
.actors-list.small,
.actors-list.medium,
.actors-list.large {
  display: grid;
  grid-gap: 1.5em;
}

.actors-list.small {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.actors-list.medium {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.actors-list.large {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.actor-card {
  position: relative;
  z-index: 1;
}

.actor-card .actor-card-content p {
  display: none;
}

.aktorzy .post-thumbnail {
  display: inline-block;
}

.aktorzy .wp-post-image {
  aspect-ratio: 8/13;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

@media (min-width: 767px) {
  .aktorzy .post-thumbnail {
    position: sticky;
    top: 40px;
  }
  .actor-card::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--color-light-1);
    opacity: 0;
    transition: 0.3s ease-in-out;
    z-index: 0;
  }

  .actor-card .actor-card-content {
    position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(30%);
    transition: 0.3s ease-in-out;
  }
  .actor-card .actor-card-content p {
    display: block;
  }

  .actor-card:hover::before {
    opacity: 0.75;
  }
  .actor-card:hover .actor-card-content {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tilt
----------------------- */

.tilt-card {
  color: #fff;
  background-color: #e84393;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.tilt-card h3 {
  transform: translateZ(50px);
}

/* Actors single
-------------------------------------------- */

.single-actor-list-item {
  padding-top: 1.3em;
  padding-bottom: 1.3em;
  border-bottom: 1px solid var(--color-light-2);
}

.single-actor-list-item p {
  margin-top: 0;
  margin-bottom: 0;
}

.single-actor-gallery ul {
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 12px;
}

.single-actor-gallery ul li {
  list-style: none;
}

.single-actor-gallery ul li img {
  aspect-ratio: 3/4;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.p-relative {
  position: relative;
}

.about-img {
  width: 40%;
  position: absolute;
  top: 3em;
  right: 8%;
}

.light .about-img {
  filter: invert(1);
}

/* Categories
--------------------------------- */

.categories {
  position: relative;
}

.categories-item {
  border-bottom: 2px solid #99999933;
  transition: 0.2s ease-in-out;
  z-index: 1;
}

.categories-item h3 {
  font-size: 2.4rem;
  text-transform: uppercase;
  transition: 0.2s ease-in-out;
}

.categories-item:hover h3 {
  opacity: 0.5;
}

.categories-item:first-child {
  border-top: 2px solid #99999953;
}

.categories::before {
  position: absolute;
  content: url("/wp-content/uploads/2023/04/woman-bg.png");
  top: 0;
  right: 0;
  filter: invert(17%) sepia(96%) saturate(7342%) hue-rotate(1deg)
    brightness(221%) contrast(114%);
}
.light .categories::before {
  filter: brightness(0.1);
}

.invert-text {
  color: #eee;
  mix-blend-mode: difference;
}

@media (min-width: 767px) {
  .categories::before {
    right: 10%;
  }
  .categories-item h3 {
    font-size: 3.8rem;
  }
}

/* Hover image
  ----------------------------------- */

.hover-reveal-wrap {
  position: relative;
}
.hover-reveal {
  position: absolute;
  width: 400px;
  height: 360px;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(0.8);
  transition: all 0.5s ease-out;
  overflow: hidden;
  opacity: 0;
}
.hover-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: transform 0.4s ease-out;
}
.hidden-img {
  display: none;
}

@media (min-width: 767px) {
  .hidden-img {
    display: block;
  }
}

/* Latest posts
--------------------------------- */

.latest-posts img {
  aspect-ratio: 11 / 6;
  object-fit: cover;
  object-position: center;
}

/* Footer 
--------------------------------- */

.site-footer {
  padding-top: 5em;
  padding-bottom: 2em;
  overflow: hidden;
  background: var(--color-light-2);
}

.site-footer .tr-button {
  width: 100%;
  text-align: center;
}

.site-links ul {
  padding-left: 0;
}

.site-links li {
  list-style: none;
  display: inline-block;
  margin-right: 2em;
  margin-left: 0;
}

.footer-bottom p,
.footer-bottom li {
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-img {
  width: 40%;
  position: absolute;
  top: -15.5em;
  right: -3em;
  transform: translateY(4em);
}

.light .footer-img {
  filter: invert(1);
}

@media (min-width: 767px) {
  .footer-button {
    transform: translateY(235px);
  }
  .site-footer .tr-button {
    width: auto;
  }
  .site-links {
    text-align: end;
  }
  .site-links li {
  }
}

/* Parallax
--------------------------------- */

.parallax-section-content {
  position: relative;
}

.parallax-section-img {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  z-index: 0;
  height: 77%;
}

/*
.parallax-section-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(39.52% 39.52% at 50% 49.94%, #A7AAAB 0%, #878C8D 100%);
    z-index: 1
}
*/

.parallax-section-img img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: overlay;
  transform: translateY(-50%);
}

.aspect_16-9 {
  --ratio: 620/1000;
}
.parallax-wrap {
  padding-bottom: calc(100% / (var(--ratio)));
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

@media (min-width: 767px) {
  .parallax-section-img img {
    top: 0;
    transform: translateY(0);
  }
  .aspect_16-9 {
    --ratio: 1920/900;
  }
}

@media (max-width: 767px) {
  .parallax-section-img {
    background: url("/wp-content/uploads/2023/04/mg-mob-2.jpg");
    background-size: cover;
    background-position: center;
  }
}

.loop-text-wrap {
  max-width: 100%;
}

.loop-text {
  display: inline-block;
  white-space: nowrap;
  mix-blend-mode: exclusion;
}
.loop-text span {
  font-size: 14vw;
  display: inline-block;
  padding: 0 0.2em;
  color: #fff;
}

.parallax-avatar {
  display: none;
}

@media (min-width: 767px) {
  .parallax-avatar {
    display: block;
    position: absolute;
    top: 330px;
    left: 0;
    padding: 1.3em 3em 0.9em 2em;
    background: #1d1d1d;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .parallax-avatar a {
    color: #fff;
  }
}

/* Pricing card
------------------------------------------- */

.pricing-card {
  margin-bottom: 5em;
}

.pricing-card .number {
  color: var(--color-dark-1);
  opacity: 0.5;
}

.pricing-card .ft-line {
  opacity: 0.5;
}

