/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

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

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

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

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

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

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

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

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

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

/**
 * Remove the inner border and padding in Firefox.
 */

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

/**
 * Restore the focus styles unset by the previous rule.
 */

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

/**
 * Correct the padding in Firefox.
 */

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

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

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

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

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

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

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

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

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

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

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

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  /* Replace with the appropriate font weight */
  font-weight: 400;
  /* Replace with the correct file path */
  src: url(fonts/35d26b781dc5fda684cc.ttf) format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  /* Replace with the appropriate font weight */
  font-weight: 500;
  /* Replace with the correct file path */
  src: url(fonts/673ed42382ab264e0bf5.ttf) format("truetype");
}

.page {
  background-color: #fcf5e5;
  min-height: 100vh;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.page__section {
  max-width: 1280px;
  margin: 0 auto;
}

.header {
  background-color: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

.header__logo {
  width: 94px;
  height: 26px;
}

.profile {
  display: flex;
  padding: 34px 0 20px;
  border-bottom: 1px rgba(33, 33, 33, 0.4) solid;
}

.profile__avatar {
  width: 190px;
  height: 190px;
  margin-right: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.profile__column {
  display: flex;
  flex-direction: column;
}

.profile__name {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  margin: 0 0 12px;
  max-width: 420px;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.profile__description {
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: #212121;
  opacity: 70%;
  margin: 0;
  max-width: 420px;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.profile__edit-btn {
  cursor: pointer;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #212121;
  opacity: 70%;
  margin-top: auto;
  margin-right: auto;
  background-color: #fcf5e5;
  border-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile__edit-btn:hover {
  opacity: 1;
  cursor: pointer;
}

.profile__add-btn {
  cursor: pointer;
  width: 149px;
  height: 52px;
  margin-left: auto;
  border: none;
  background-color: #212121;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: #fcf5e5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  gap: 8px;
  margin-top: auto;
}

.profile__add-btn:hover {
  opacity: 0.8;
  cursor: pointer;
}

@media screen and (max-width: 627px) {
  .profile {
    flex-direction: column;
    max-width: 288px;
    align-items: center;
    text-align: center;
    padding-top: 20px;
  }

  .profile__avatar {
    margin: 0 0 12px;
    height: 80px;
    width: 80px;
  }

  .profile__name {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .profile__description {
    font-size: 16px;
  }

  .profile__edit-btn {
    margin: 0;
    padding-top: 32px;
  }

  .profile__add-btn {
    width: 100%;
    margin: 20px 0 0;
  }
}

.content {
  padding: 0 20px;
}

@media screen and (max-width: 627px) {
  .content {
    padding: 0 16px;
  }
}

.cards {
  padding-top: 20px;
  padding-bottom: 40px;
  border-bottom: 1px rgba(33, 33, 33, 0.4) solid;
}

.cards__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, 413px);
  justify-content: center;
  gap: 40px 20px;
}

@media screen and (max-width: 627px) {
  .cards {
    padding-bottom: 20px;
    max-width: 288px;
  }
  .cards__list {
    row-gap: 20px;
    grid-template-columns: repeat(auto-fit, 288px);
  }
}

.card {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card__image {
  height: 413px;
  width: 413px;
  object-fit: cover;
  display: block;
  border-radius: 2%;
}

.card__content {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__title {
  margin: auto;
  max-width: 390px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 0;
}
.card__like-btn {
  cursor: pointer;
  background-image: url(images/29a25a3c4fb6b6e4a7d6.svg);
  width: 23px;
  height: 20px;
  border: none;
  opacity: 0.4;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.card__delete-btn {
  cursor: pointer;
  background-image: url(images/26471af0aef947f1b90a.svg);
  width: 32px;
  height: 32px;
  border: none;
  opacity: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  position: absolute;
  top: 10px;
  left: 371px;
}

.card__delete-btn:hover {
  background-image: url(images/86ae92bd1a937388d496.svg);
  cursor: pointer;
}

.card__like-btn:hover {
  opacity: 1;
  cursor: pointer;
}

.card__like-btn_active {
  background-image: url(images/5ba14d29c8f0f8b51069.svg);
  opacity: 1;
}

.card__like-btn_active:hover {
  opacity: 0.8;
  cursor: pointer;
}

@media screen and (max-width: 627px) {
  .card__like-btn {
    width: 20px;
    height: 18px;
  }
  .card__image {
    height: 288px;
    width: 288px;
  }

  .card__content {
    padding-top: 12px;
    max-width: 288px;
    width: 100%;
  }

  .card__title {
    font-size: 16px;
    max-width: 260px;
  }

  .card__delete-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    left: 246px;
  }
}

.footer {
  margin-top: auto;
  text-align: center;
  padding: 60px 0;
}

.footer__text {
  color: #212121;
  font-size: 16px;
  line-height: 16px;
  opacity: 70%;
  margin: 0;
}

.modal {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: visibility 0.3s, opacity 0.3s;
}

.modal_is-opened {
  visibility: visible;
  opacity: 1;
}

.modal__container {
  max-width: 703px;
  width: 100%;
  border-radius: 8px;
  background-color: #fff;
  padding: 32px 50px;
  position: relative;
}

.modal__close-button {
  position: absolute;
  top: 32px;
  right: 50px;
  width: 40px;
  height: 40px;
  background-image: url(images/b892798db6e199b9cd96.png);
  opacity: 40%;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.modal__close-button:hover {
  opacity: 100%;
  cursor: pointer;
}

.modal__title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 500;
  line-height: 100%;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__label {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 110%;
  color: rgba(33, 33, 33, 0.7);
}

.modal__input {
  display: block;
  margin: 8px 0 0;
  width: 100%;
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.modal__input::placeholder {
  color: rgba(33, 33, 33, 0.4);
}

/* Validation states */
.modal__error {
  display: block;
  min-height: 18px;
  font-size: 12px;
  color: #ff3b30;
  margin-top: 6px;
  visibility: hidden;
}

.modal__error_visible {
  visibility: visible;
}

.modal__input_type_error {
  border-color: #ff3b30;
}

.modal__submit-button_disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal__submit-button {
  width: 156px;
  height: 52px;
  padding: 16px 12px;
  border-radius: 8px;
  background-color: rgba(33, 33, 33, 1);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
}

.modal__submit-button:hover {
  opacity: 0.8;
  cursor: pointer;
}

.modal__image {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  margin: 0 auto;
}

.modal__caption {
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 8px;
  text-align: center;
  font-size: 18px;
  max-width: 80vw;
  word-break: break-word;
}

.preview-image-modal .modal__container {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
  max-height: none;
  width: fit-content;
  height: fit-content;
}

.preview-image-modal .modal__close-button {
  background-image: url(images/53f0bab7ec2e970778f9.svg);
  opacity: 100%;
  right: -50px;
  top: 0;
}
.preview-image-modal .modal__close-button:hover {
  opacity: 40%;
}

.preview-image-modal .modal__caption {
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px 4px 8px;
  border-radius: 8px;
  margin-top: 4px;
  font-size: 18px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  word-break: break-word;
}

@media screen and (max-width: 627px) {
  .modal__container {
    padding: 25px 22px;
  }

  .modal__title {
    font-size: 20px;
  }

  .modal__submit-button {
    width: 100%;
  }

  .modal__close-button {
    top: 16px;
    right: 16px;
  }

  .modal__image {
    max-width: 80vw;
    max-height: 60vh;
  }
  .modal__caption {
    font-size: 14px;
    max-width: 95vw;
  }

  .preview-image-modal .modal__close-button {
    background-image: url(images/53f0bab7ec2e970778f9.svg);
    width: 40px;
    height: 40px;
    opacity: 100%;
  }

  .preview-image-modal.portrait .modal__close-button {
    right: 10px;
    top: 30px;
  }

  .preview-image-modal.landscape .modal__close-button {
    left: 270px;
    top: -45px;
  }
}



/*# sourceMappingURL=main.401715311762496c244c.css.map*/