/* ==============================================
  =================== MAIN ======================
  ============================================== */

:root {
  --main-color: #d3573c;
  --secondary-color: #901c1c;
  --tertiary-color: #db8876;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  padding: 0;
}

#main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  align-content: center;
}

/* ==============================================
  ================ HERO HEADER ==================
  ============================================== */

.photograph-header {
  display: flex;
  align-items: center;
  width: 1093px;
  height: 313px;
}

.photograph-header-container {
  background-color: #fafafa;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
}

.photograph-header h2 {
  color: var(--main-color);
  font-size: 56px;
  font-style: normal;
  font-weight: 400;
  margin: 0;
}

.photograph-header .info {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 0;
}

.tagline,
.location {
  padding: 5px 0px;
}

.photograph-header p.location {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.contact_button {
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  color: white;
  padding: 11px;
  width: 170px;
  height: 70px;

  border: none;
  background-color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
}

.contact_button:hover,
.contact_button:focus {
  color: black;
  background-color: var(--tertiary-color);
}

.photograph-header img {
  height: 200px;
  width: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==============================================
  ================== SORTING ====================
  ============================================== */

.sort-container {
  padding: 10px 0 30px 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

.sort-container label,
.sort-container select {
  font-family: "DM Sans";
  font-size: 18px;
  font-weight: 700;
}

.sort-container label {
  color: black;
}

.sort-container select {
  border-radius: 5px;
  width: 170px;
  height: 60px;
  text-align: left;
  color: white;
  background-color: var(--secondary-color);
}

/* ==============================================
  ================= PORTFOLIO ===================
  ============================================== */

.portfolio {
  width: 1093px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 95px;
}

.media {
  width: 300px;
  height: 300px;
  border-radius: 5px;
  overflow: hidden;
}

.media img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.media video {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.caption {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.media-title {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 80%;
}

.like-counts {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  gap: 5px;
}

/* ==============================================
  =============== LIKES + PRICE =================
  ============================================== */

.price-likes-button {
  position: fixed;
  bottom: 0px;
  right: 20px;
  background-color: var(--tertiary-color);
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 50px;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.likes-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-likes {
  font-size: 1.2em;
}

.price-per-day {
  font-size: 1.2em;
}

/* ==============================================
  =============== CONTACT MODAL =================
  ============================================== */

#contact_modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 35px;
  overflow: auto;
  background-color: rgba(196, 196, 196, 0.4);
}

.modal-content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 550px;
  background-color: var(--tertiary-color);
  border-radius: 5px;
  padding: 35px;
  gap: 20px;
  flex-grow: 1;
  box-shadow: -5px 10px 30px 0px rgba(0, 0, 0, 0.25);
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 100%;
}

.modal header img {
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.modal header h2 {
  font-size: 46px;
  font-weight: normal;
  width: 100%;
}

form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

form label {
  color: #312e2e;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 5px 0px;
}

form div {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: self-start;
  padding: 5px 0px;
}

form input {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 5px;
}

#message {
  width: 100%;
  height: 120px;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* ==============================================
  ================== LIGHTBOX ===================
  ============================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border: 1px solid red;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 930px;
  max-width: 95%;
  height: auto;
  max-height: 95%;
}

.lightbox-media-container {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}

.lightbox-media-container .media {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80vh;
}

.lightbox-media-container img,
.lightbox-media-container video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  width: 96px;
  height: 96px;
  border: none;
  position: absolute;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  background: url(../assets/icons/arrow.svg) no-repeat;
  z-index: 1009;
}

.lightbox-close {
  order: 6;
  right: 50px;
  background: url(../assets/icons/lightbox-close.svg) no-repeat;
}

.lightbox-prev {
  order: 4;
  left: 50px;
}

.lightbox-next {
  order: 5;
  right: 50px;
  transform: rotate(-180deg);
}

.lightbox-media-title {
  order: 3;
  color: var(--secondary-color);
  font-size: 20px;
  text-align: left;
  padding: 5px;
}
